|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Physics/Body.hpp>
Classes | |
| struct | Accessor |
Public Member Functions | |
| virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo | getClassInfo () const noexcept |
| virtual ::CeresEngine::ClassInfo | getClassInfo () noexcept |
Public Member Functions inherited from CeresEngine::Component< RigidBodyComponent > | |
| const ComponentType & | getComponentType () const noexcept final |
| Gets the component type. | |
Public Member Functions inherited from CeresEngine::AbstractComponent | |
| virtual | ~AbstractComponent ()=default |
| Defaulted virtual destructor. | |
Static Public Member Functions | |
| template<typename Processor > | |
| static constexpr void | reflect (Processor &&RTTI) |
| Executes the given processor for every field of the struct. | |
Public Attributes | |
| double | mass = 0.0 |
| The rigid body mass. | |
| Vector3 | localInertia |
| The rigid body local inertia. | |
| double | linearDamping |
| The body's linear damping factor. | |
| double | angularDamping |
| The body's angular damping factor. | |
| double | friction |
| The body's friction factor. | |
| double | rollingFriction |
| The body's rolling friction factor. | |
| double | spinningFriction |
| The body's spinning friction factor. | |
| double | restitution |
| The body's restitution factor. | |
| bool | fixed = false |
If set to true, if the body is non-movable and the engine might use this to optimize calculations. | |
| HMesh | mesh = nullptr |
| A mesh to be used for collision computations. | |
| Any | engineContext |
| A context used by the engine implementation to store data about the physics simulation. | |
Additional Inherited Members | |
Static Public Attributes inherited from CeresEngine::Component< RigidBodyComponent > | |
| static const ComponentID | componentID |
| This component type ID. | |
| static const ComponentMask | mask |
| The component mask. | |
| static const ComponentType & | componentType |
| Gets the component type. | |
|
virtualnoexcept |
Reimplemented from CeresEngine::AbstractComponent.
|
virtualnoexcept |
Reimplemented from CeresEngine::AbstractComponent.
|
inlinestaticconstexpr |
Executes the given processor for every field of the struct.
| RTTI | The processor to be ran for every field. |
| double CeresEngine::RigidBodyComponent::angularDamping |
The body's angular damping factor.
| Any CeresEngine::RigidBodyComponent::engineContext |
A context used by the engine implementation to store data about the physics simulation.
If set to true, if the body is non-movable and the engine might use this to optimize calculations.
| double CeresEngine::RigidBodyComponent::friction |
The body's friction factor.
| double CeresEngine::RigidBodyComponent::linearDamping |
The body's linear damping factor.
| Vector3 CeresEngine::RigidBodyComponent::localInertia |
The rigid body local inertia.
| double CeresEngine::RigidBodyComponent::mass = 0.0 |
The rigid body mass.
| double CeresEngine::RigidBodyComponent::restitution |
The body's restitution factor.
| double CeresEngine::RigidBodyComponent::rollingFriction |
The body's rolling friction factor.
| double CeresEngine::RigidBodyComponent::spinningFriction |
The body's spinning friction factor.