GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::PhysicsObject Struct Reference

Physics object contained in a model. More...

#include <GREM/resource/Model.hpp>

Public Attributes

JointIndex jointIndex
 Index of the model joint that is affected by the object.
float mass
 Mass of the object, or 0 to calculate.
vec3 centerOfMass
 Local center of mass of the object.
vec3 principalMomentsOfInertia
 Diagonal of the local moment of inertia tensor of the object, or 0 to calculate.
quat inertiaOrientation
 Orientation of the local moment of inertia tensor of the object.
vec3 initialLinearVelocity
 Initial linear velocity of the object in local space.
vec3 initialAngularVelocity
 Initial angular velocity of the object in local space.
float gravityFactor
 Gravity factor of the object.
float staticFriction
 Static friction of the object.
float dynamicFriction
 Dynamic friction of the object.
float rollingResistance
 Rolling resistance of the object.
float restitution
 Coefficient of restitution of the object.
FrictionCombine frictionCombine
 How to combine the friction when this object collides with another.
RestitutionCombine restitutionCombine
 How to combine the restitution when this object collides with another.

Detailed Description

Physics object contained in a model.

Member Data Documentation

◆ jointIndex

JointIndex grem::resource::Model::PhysicsObject::jointIndex

Index of the model joint that is affected by the object.

◆ mass

float grem::resource::Model::PhysicsObject::mass

Mass of the object, or 0 to calculate.

◆ centerOfMass

vec3 grem::resource::Model::PhysicsObject::centerOfMass

Local center of mass of the object.

◆ principalMomentsOfInertia

vec3 grem::resource::Model::PhysicsObject::principalMomentsOfInertia

Diagonal of the local moment of inertia tensor of the object, or 0 to calculate.

◆ inertiaOrientation

quat grem::resource::Model::PhysicsObject::inertiaOrientation

Orientation of the local moment of inertia tensor of the object.

◆ initialLinearVelocity

vec3 grem::resource::Model::PhysicsObject::initialLinearVelocity

Initial linear velocity of the object in local space.

◆ initialAngularVelocity

vec3 grem::resource::Model::PhysicsObject::initialAngularVelocity

Initial angular velocity of the object in local space.

◆ gravityFactor

float grem::resource::Model::PhysicsObject::gravityFactor

Gravity factor of the object.

◆ staticFriction

float grem::resource::Model::PhysicsObject::staticFriction

Static friction of the object.

◆ dynamicFriction

float grem::resource::Model::PhysicsObject::dynamicFriction

Dynamic friction of the object.

◆ rollingResistance

float grem::resource::Model::PhysicsObject::rollingResistance

Rolling resistance of the object.

◆ restitution

float grem::resource::Model::PhysicsObject::restitution

Coefficient of restitution of the object.

◆ frictionCombine

FrictionCombine grem::resource::Model::PhysicsObject::frictionCombine

How to combine the friction when this object collides with another.

◆ restitutionCombine

RestitutionCombine grem::resource::Model::PhysicsObject::restitutionCombine

How to combine the restitution when this object collides with another.


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