![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <RigidBody2D.hpp>
Public Member Functions | |
ConstructInfo2D (const CollisionShape2D &shape, const RigidBody::Type type=RigidBody::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 | restitution |
Restitution. More... | |
Friends | |
class | RigidBody2D |
Rigid body construction info
Definition at line 52 of file RigidBody2D.hpp.
jop::RigidBody2D::ConstructInfo2D::ConstructInfo2D | ( | const CollisionShape2D & | shape, |
const RigidBody::Type | type = RigidBody::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 58 of file RigidBody2D.hpp.
float jop::RigidBody2D::ConstructInfo2D::friction |
Friction.
Definition at line 73 of file RigidBody2D.hpp.
int16 jop::RigidBody2D::ConstructInfo2D::group |
Collision filter group.
Definition at line 70 of file RigidBody2D.hpp.
int16 jop::RigidBody2D::ConstructInfo2D::mask |
Collision filter mask.
Definition at line 71 of file RigidBody2D.hpp.
float jop::RigidBody2D::ConstructInfo2D::restitution |
Restitution.
Definition at line 74 of file RigidBody2D.hpp.