Thrive
Public Attributes | List of all members
thrive::RigidBodyComponent::Properties Struct Reference

Properties. More...

#include <rigid_body_system.h>

Inheritance diagram for thrive::RigidBodyComponent::Properties:
thrive::Touchable

Public Attributes

CollisionShape::Ptr shape {new EmptyShape()}
 The body's shape .
 
btScalar restitution = 0.f
 The restitution factor. More...
 
Ogre::Vector3 linearFactor {1,1,1}
 Locks linear movement to specific axis.
 
Ogre::Vector3 angularFactor {1,1,1}
 Locks angular movement to specific axis.
 
btScalar mass = 1.f
 The mass of the rigid body.
 
btScalar friction = 0.f
 The friction of the object.
 
btScalar linearDamping = 0.0f
 The velocity dampening.
 
btScalar angularDamping = 1.f
 Rotation dampening.
 
btScalar rollingFriction = 0.f
 The friction when rolling. More...
 
bool hasContactResponse = true
 Whether this rigid body reacts to collisions.
 
bool kinematic = false
 Whether this body is kinematic.
 

Additional Inherited Members

- Public Member Functions inherited from thrive::Touchable
bool hasChanges () const
 Whether this Touchable has unapplied changes.
 
void touch ()
 Marks the Touchable as changed.
 
void untouch ()
 Marks all changes as applied.
 
- Static Public Member Functions inherited from thrive::Touchable
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

Properties.

Member Data Documentation

btScalar thrive::RigidBodyComponent::Properties::restitution = 0.f

The restitution factor.

The spring or bounciness of a rigid body

btScalar thrive::RigidBodyComponent::Properties::rollingFriction = 0.f

The friction when rolling.

The rollingFriction prevents rounded shapes, such as spheres, cylinders and capsules from rolling forever


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