CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::RigidBodyComponent Struct Referencefinal

#include <CeresEngine/Physics/Body.hpp>

Inheritance diagram for CeresEngine::RigidBodyComponent:
CeresEngine::Component< RigidBodyComponent > CeresEngine::AbstractComponent

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 ComponentTypegetComponentType () 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 ComponentTypecomponentType
 Gets the component type.
 

Member Function Documentation

◆ getClassInfo() [1/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::RigidBodyComponent::getClassInfo ( ) const
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ getClassInfo() [2/2]

virtual ::CeresEngine::ClassInfo CeresEngine::RigidBodyComponent::getClassInfo ( )
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::RigidBodyComponent::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ angularDamping

double CeresEngine::RigidBodyComponent::angularDamping

The body's angular damping factor.

◆ engineContext

Any CeresEngine::RigidBodyComponent::engineContext

A context used by the engine implementation to store data about the physics simulation.

◆ fixed

bool CeresEngine::RigidBodyComponent::fixed = false

If set to true, if the body is non-movable and the engine might use this to optimize calculations.

◆ friction

double CeresEngine::RigidBodyComponent::friction

The body's friction factor.

◆ linearDamping

double CeresEngine::RigidBodyComponent::linearDamping

The body's linear damping factor.

◆ localInertia

Vector3 CeresEngine::RigidBodyComponent::localInertia

The rigid body local inertia.

◆ mass

double CeresEngine::RigidBodyComponent::mass = 0.0

The rigid body mass.

◆ mesh

HMesh CeresEngine::RigidBodyComponent::mesh = nullptr

A mesh to be used for collision computations.

◆ restitution

double CeresEngine::RigidBodyComponent::restitution

The body's restitution factor.

◆ rollingFriction

double CeresEngine::RigidBodyComponent::rollingFriction

The body's rolling friction factor.

◆ spinningFriction

double CeresEngine::RigidBodyComponent::spinningFriction

The body's spinning friction factor.


The documentation for this struct was generated from the following file: