|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Holds mass, velocity, acceleration, forces, restitution, bounciness, and gravity settings. More...
#include <RigidBody.hpp>
Public Attributes | |
| RigidBodyType | type = RigidBodyType::Dynamic |
| float | mass = 1.0f |
| glm::vec3 | velocity = glm::vec3(0.0f) |
| glm::vec3 | acceleration = glm::vec3(0.0f) |
| glm::vec3 | force = glm::vec3(0.0f) |
| float | gravityScale = 1.0f |
| float | restitution = 0.5f |
| float | friction = 0.3f |
| glm::vec3 | angularVelocity = glm::vec3(0.0f) |
| glm::vec3 | torque = glm::vec3(0.0f) |
| float | angularDrag = 0.5f |
| float | linearDrag = 0.0f |
| float | sleepTimer = 0.0f |
| bool | sleeping = false |
| bool | hadContactThisFrame = false |
| bool | unstableContactThisFrame = false |
| bool | freezePositionX = false |
| bool | freezePositionY = false |
| bool | freezePositionZ = false |
| bool | freezeRotationX = false |
| bool | freezeRotationY = false |
| bool | freezeRotationZ = false |
Holds mass, velocity, acceleration, forces, restitution, bounciness, and gravity settings.
| glm::vec3 RigidBodyComponent::acceleration = glm::vec3(0.0f) |
| float RigidBodyComponent::angularDrag = 0.5f |
| glm::vec3 RigidBodyComponent::angularVelocity = glm::vec3(0.0f) |
| glm::vec3 RigidBodyComponent::force = glm::vec3(0.0f) |
| bool RigidBodyComponent::freezePositionX = false |
| bool RigidBodyComponent::freezePositionY = false |
| bool RigidBodyComponent::freezePositionZ = false |
| bool RigidBodyComponent::freezeRotationX = false |
| bool RigidBodyComponent::freezeRotationY = false |
| bool RigidBodyComponent::freezeRotationZ = false |
| float RigidBodyComponent::friction = 0.3f |
| float RigidBodyComponent::gravityScale = 1.0f |
| bool RigidBodyComponent::hadContactThisFrame = false |
| float RigidBodyComponent::linearDrag = 0.0f |
| float RigidBodyComponent::mass = 1.0f |
| float RigidBodyComponent::restitution = 0.5f |
| bool RigidBodyComponent::sleeping = false |
| float RigidBodyComponent::sleepTimer = 0.0f |
| glm::vec3 RigidBodyComponent::torque = glm::vec3(0.0f) |
| RigidBodyType RigidBodyComponent::type = RigidBodyType::Dynamic |
| bool RigidBodyComponent::unstableContactThisFrame = false |
| glm::vec3 RigidBodyComponent::velocity = glm::vec3(0.0f) |