41 std::shared_ptr<Entities::SceneNode> sceneNode,
49 void tick(
double deltaTime)
override;
Logic(Entities::Scene *owningScene)
void setMoveSpeed(float speed)
Sets the horizontal movement speed in units per second.
void beginPlay() override
Called when the component is added to the scene or the game starts.
void endPlay() override
Called when the component is removed or the game ends.
glm::vec3 getHeadsetForwardXZ() const
~VrMovement() override=default
static constexpr const char * ComponentName
static constexpr bool IsUnique
VrMovement(Entities::Scene *owningScene, std::shared_ptr< Entities::SceneNode > sceneNode, Rendering::Headset *headset, Input::XrInputHandler *inputHandler)
Constructs the VR movement component.
void setDeadZone(float deadZone)
Sets the dead zone for thumbstick input (0.0 to 1.0)
float getDeadZone() const
Input::XrInputHandler * inputHandler_
void setVerticalSpeed(float speed)
Sets the vertical movement speed in units per second.
std::shared_ptr< Entities::SceneNode > sceneNode_
Rendering::Headset * headset_
void tick(double deltaTime) override
Called every frame if ticking is enabled.
float getMoveSpeed() const
float getVerticalSpeed() const
A scene is the overarching structure which can spawn, contain and destroy actors or entities.