#include <components.hpp>
◆ BodyType
Enumerator |
---|
Static | |
Kinematic | |
Dynamic | |
◆ Rigidbody2DComponent() [1/2]
jng::Rigidbody2DComponent::Rigidbody2DComponent |
( |
| ) |
|
|
default |
◆ Rigidbody2DComponent() [2/2]
◆ reset()
void jng::Rigidbody2DComponent::reset |
( |
| ) |
|
◆ setLinearVelocity()
void jng::Rigidbody2DComponent::setLinearVelocity |
( |
glm::vec2 |
velocity | ) |
|
◆ angularDamping
f32 jng::Rigidbody2DComponent::angularDamping = 0.1f |
◆ bodyHandle
b2Body* jng::Rigidbody2DComponent::bodyHandle = nullptr |
◆ enabled
bool jng::Rigidbody2DComponent::enabled = true |
◆ freezeRotation
bool jng::Rigidbody2DComponent::freezeRotation = false |
◆ gravityScale
f32 jng::Rigidbody2DComponent::gravityScale = 1.f |
◆ linearDamping
f32 jng::Rigidbody2DComponent::linearDamping = 0.1f |
◆ type
The documentation for this struct was generated from the following files: