|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
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. | |
Physics object contained in a model.
| JointIndex grem::resource::Model::PhysicsObject::jointIndex |
Index of the model joint that is affected by the object.
| float grem::resource::Model::PhysicsObject::mass |
Mass of the object, or 0 to calculate.
| vec3 grem::resource::Model::PhysicsObject::centerOfMass |
Local center of mass of the object.
| vec3 grem::resource::Model::PhysicsObject::principalMomentsOfInertia |
Diagonal of the local moment of inertia tensor of the object, or 0 to calculate.
| quat grem::resource::Model::PhysicsObject::inertiaOrientation |
Orientation of the local moment of inertia tensor of the object.
| vec3 grem::resource::Model::PhysicsObject::initialLinearVelocity |
Initial linear velocity of the object in local space.
| vec3 grem::resource::Model::PhysicsObject::initialAngularVelocity |
Initial angular velocity of the object in local space.
| float grem::resource::Model::PhysicsObject::gravityFactor |
Gravity factor of the object.
| float grem::resource::Model::PhysicsObject::staticFriction |
Static friction of the object.
| float grem::resource::Model::PhysicsObject::dynamicFriction |
Dynamic friction of the object.
| float grem::resource::Model::PhysicsObject::rollingResistance |
Rolling resistance of the object.
| float grem::resource::Model::PhysicsObject::restitution |
Coefficient of restitution of the object.
| FrictionCombine grem::resource::Model::PhysicsObject::frictionCombine |
How to combine the friction when this object collides with another.
| RestitutionCombine grem::resource::Model::PhysicsObject::restitutionCombine |
How to combine the restitution when this object collides with another.