Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
|
Public Member Functions | |
RigidBodyComponent (float mass, ColliderComponent *colliderComponent) | |
RigidBodyComponent | Clone (Grindstone::WorldContextSet &cxt, entt::entity newEntityId) const |
void | SetCollisionShape (ColliderComponent *colliderComponent) |
void | SetFriction (float friction) |
void | SetRestitution (float restitution) |
void | SetDamping (float linear, float rotational) |
void | ApplyForce (Math::Float3 pos, Math::Float3 force) |
void | ApplyCentralForce (Math::Float3 force) |
void | ApplyImpulse (Math::Float3 pos, Math::Float3 force) |
void | ApplyCentralImpulse (Math::Float3 force) |
float | GetMass () const |
float | GetFriction () const |
float | GetRestitution () const |
float | GetDampingLinear () const |
float | GetDampingRotational () const |
Public Attributes | |
Grindstone::UniquePtr< btRigidBody > | rigidBody = nullptr |
Grindstone::UniquePtr< btDefaultMotionState > | motionState = nullptr |