Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Physics::RigidBodyComponent Struct Reference

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
 RigidBodyComponent (float mass, ColliderComponent *colliderComponent)
RigidBodyComponent Clone (Grindstone::WorldContextSet &cxt, entt::entity newEntityId) const
void SetIsStatic (bool isStatic)
void SetLayer (Grindstone::Physics::Layer layer)
void SetFriction (float friction)
void SetRestitution (float restitution)
void SetPosition (Math::Float3 pos)
void SetRotation (Math::Quaternion rot)
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)
bool GetIsStatic () const
Grindstone::Physics::Layer GetLayer () const
float GetMass () const
float GetFriction () const
float GetRestitution () const
Math::Float3 GetPosition () const
Math::Quaternion GetRotation () const
void SetBodyID (JPH::BodyID bodyId)
JPH::BodyID GetBodyID () const

Static Public Member Functions

static void Construct (Grindstone::WorldContextSet &, entt::entity)
static void Construct (Grindstone::WorldContextSet &, entt::entity)
static void Destroy (Grindstone::WorldContextSet &, entt::entity)

Public Attributes

Grindstone::UniquePtr< btRigidBody > rigidBody = nullptr
Grindstone::UniquePtr< btDefaultMotionState > motionState = nullptr
bool isStatic = false
Grindstone::Physics::Layer layer = 0
JPH::BodyID rigidBody

The documentation for this struct was generated from the following files:
  • /github/workspace/plugins/Grindstone.Physics.Bullet/include/Components/RigidBodyComponent.hpp
  • /github/workspace/plugins/Grindstone.Physics.Jolt/include/Components/RigidBodyComponent.hpp
  • /github/workspace/plugins/Grindstone.Physics.Bullet/source/Components/RigidBodyComponent.cpp
  • /github/workspace/plugins/Grindstone.Physics.Jolt/source/Components/RigidBodyComponent.cpp