36 void tick(
double deltaTime)
override;
LogicComponent(Scene *owningScene)
A scene is the overarching structure which can spawn actors.
float getDeadzone() const
void setDeadzone(float deadzone)
Sets the deadzone for thumbstick input (0.0 to 1.0)
Input::XrInputHandler * inputHandler_
void beginPlay() override
Called when the component is added to the scene or the game starts.
void tick(double deltaTime) override
Called every frame if ticking is enabled.
void setMoveSpeed(float speed)
Sets the horizontal movement speed in units per second.
void setVerticalSpeed(float speed)
Sets the vertical movement speed in units per second.
void endPlay() override
Called when the component is removed or the game ends.
float getVerticalSpeed() const
~VrMovementComponent() override=default
glm::vec3 getHeadsetForwardXZ() const
static constexpr bool IsUnique
VrMovementComponent(Scene *owningScene, Headset *headset, Input::XrInputHandler *inputHandler)
Constructs the VR movement component.
float getMoveSpeed() const
Log category system implementation.