![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <RigidBody.hpp>
Public Member Functions | |
ConstructInfo (const CollisionShape &shape, const Type type=Type::Static, const float mass=0.f) | |
Constructor. More... | |
Public Attributes | |
int16 | group |
Collision filter group. More... | |
int16 | mask |
Collision filter mask. More... | |
float | friction |
Friction. More... | |
float | rollingFriction |
Rolling friction. More... | |
float | restitution |
Restitution. More... | |
Friends | |
class | RigidBody |
Rigid body construction info
Definition at line 69 of file RigidBody.hpp.
jop::RigidBody::ConstructInfo::ConstructInfo | ( | const CollisionShape & | shape, |
const Type | type = Type::Static , |
||
const float | mass = 0.f |
||
) |
Constructor.
shape | The collision shape |
type | Body type |
mass | Mass, will default to 0 when type is static or kinematic |
|
friend |
Definition at line 75 of file RigidBody.hpp.
float jop::RigidBody::ConstructInfo::friction |
Friction.
Definition at line 90 of file RigidBody.hpp.
int16 jop::RigidBody::ConstructInfo::group |
Collision filter group.
Definition at line 87 of file RigidBody.hpp.
int16 jop::RigidBody::ConstructInfo::mask |
Collision filter mask.
Definition at line 88 of file RigidBody.hpp.
float jop::RigidBody::ConstructInfo::restitution |
Restitution.
Definition at line 92 of file RigidBody.hpp.
float jop::RigidBody::ConstructInfo::rollingFriction |
Rolling friction.
Definition at line 91 of file RigidBody.hpp.