CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
RigidBodyData Struct Reference

Data describing a single Bullet rigid body shape. More...

#include <physics.h>

Detailed Description

Data describing a single Bullet rigid body shape.

Public Member Functions

 RigidBodyData ()
 Constructor for RigidBodyData.
 
 ~RigidBodyData ()
 Destructor for RigidBodyData.
 
RigidBodyDataoperator= (RigidBodyData &&src)
 The move assignment operator for RigidBodyData. More...
 

Public Attributes

mathfu::vec3 offset
 The position offset from the origin of the TransformComponent to the center.
 
short collision_type
 A bit field determining what type of collision object this is.
 
short collides_with
 A bit field determining what types of objects it can collide into.
 
std::string user_tag
 A user-defined C-string tag to identify this rigid body.
 
std::unique_ptr< btCollisionShape > shape
 The btCollisionShape of the RigidBodyData.
 
std::unique_ptr< btMotionState > motion_state
 The btMotionState of the RigidBodyData.
 
std::unique_ptr< btRigidBody > rigid_body
 The btRigidBody of the RigidBodyData.
 
bool should_export
 Should the shape be included on export.
 

Member Function Documentation

RigidBodyData& RigidBodyData::operator= ( RigidBodyData &&  src)

The move assignment operator for RigidBodyData.

Parameters
[in]srcThe other RigidBodyData to move into this RigidBodyData.

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