Skip to content
Snippets Groups Projects
Select Git revision
  • c5264763a7072415165f5e2ba6d342384d3867c2
  • master default protected
2 results

main.cpp

Blame
  • DisplayClusterPawnCAVE.cpp 489 B
    #include "DisplayClusterPawnCAVE.h"
    
    #include "Game/IDisplayClusterGameManager.h"
    #include "IDisplayCluster.h"
    
    void ADisplayClusterPawnCAVE::BeginPlay()
    {
      Flystick = IDisplayCluster::Get().GetGameMgr()->GetNodeById("flystick");
    }
    void ADisplayClusterPawnCAVE::MoveForward(float value)
    {
      if (!Flystick)
        Flystick = IDisplayCluster::Get().GetGameMgr()->GetNodeById("flystick");
      if (!Flystick || value == 0.0f)
        return;
      AddMovementInput(Flystick->GetForwardVector(), value);
    }