NcEngine
|
Properties for initializing a RigidBody. More...
#include <RigidBody.h>
Public Attributes | |
float | mass = 1000.0f |
mass of the body in kg [0.1, 100000] | |
float | friction = 0.4f |
friction of the body [0, 1] | |
float | restitution = 0.0f |
elasticity of collision response [0, 1] | |
float | linearDamping = 0.0f |
linear motion damping [0, 1] | |
float | angularDamping = 0.0f |
angular motion damping [0, 1] | |
float | gravityMultiplier = 1.0f |
amount of gravity applied to the body [0, maxGravityMultiplier] | |
BodyType | type = BodyType::Dynamic |
set type of body (on a static Entity, this will be overwritten to BodyType::Static) | |
DegreeOfFreedom::Type | freedom = DegreeOfFreedom::All |
set degrees of freedom for the body | |
RigidBodyFlags::Type | flags = RigidBodyFlags::None |
set flags for the body | |
Properties for initializing a RigidBody.