|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Component to mark and control player movement and interaction. More...
#include <PlayerControllerComponent.hpp>
Public Attributes | |
| float | speed = 5.0f |
| Movement speed multiplier (units/sec). | |
| float | jumpForce = 6.0f |
| Vertical impulse force applied when jumping. | |
| float | interactRange = 3.0f |
| Maximum interaction distance for objects. | |
| bool | orientToMovement = true |
| Whether character rotates to face the direction of movement. | |
| bool | wasJumpPressed = false |
| Transient flag set when jump key is pressed. | |
| bool | wasInteractPressed = false |
| Transient flag set when interact key is pressed. | |
| int | debugRunningCount = 0 |
| Debug frame count diagnostic. | |
| glm::vec3 | debugRbVelocity {0.0f} |
| Debug rigid body velocity diagnostic vector. | |
| float | debugMoveDirLength = 0.0f |
| Debug movement input magnitude. | |
Component to mark and control player movement and interaction.
| float PlayerControllerComponent::debugMoveDirLength = 0.0f |
Debug movement input magnitude.
| glm::vec3 PlayerControllerComponent::debugRbVelocity {0.0f} |
Debug rigid body velocity diagnostic vector.
| int PlayerControllerComponent::debugRunningCount = 0 |
Debug frame count diagnostic.
| float PlayerControllerComponent::interactRange = 3.0f |
Maximum interaction distance for objects.
| float PlayerControllerComponent::jumpForce = 6.0f |
Vertical impulse force applied when jumping.
| bool PlayerControllerComponent::orientToMovement = true |
Whether character rotates to face the direction of movement.
| float PlayerControllerComponent::speed = 5.0f |
Movement speed multiplier (units/sec).
| bool PlayerControllerComponent::wasInteractPressed = false |
Transient flag set when interact key is pressed.
| bool PlayerControllerComponent::wasJumpPressed = false |
Transient flag set when jump key is pressed.