GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
radix::RigidBody Class Reference

#include <external/RadixEngine/include/radix/component/RigidBody.hpp>

Inherits radix::Component.

Public Member Functions

 RigidBody (Entity &ent)
 
 RigidBody (Entity &ent, float mass, const std::shared_ptr< btCollisionShape > &collisionshape)
 
 ~RigidBody ()
 
const char * getName () const
 
TypeId getTypeId () const
 
void serialize (serine::Archiver &)
 
- Public Member Functions inherited from radix::Component
 Component (Entity &ent) noexcept
 
virtual ~Component ()
 

Data Fields

std::shared_ptr< btCollisionShape > shape
 
btDefaultMotionState motionState
 
btRigidBody * body
 

Additional Inherited Members

- Public Types inherited from radix::Component
using TypeId = ComponentTypeId
 
- Static Public Member Functions inherited from radix::Component
template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 
- Static Public Attributes inherited from radix::Component
static constexpr TypeId MaxId = 32
 
- Protected Attributes inherited from radix::Component
Entityentity
 

Constructor & Destructor Documentation

radix::RigidBody::RigidBody ( Entity ent)
radix::RigidBody::RigidBody ( Entity ent,
float  mass,
const std::shared_ptr< btCollisionShape > &  collisionshape 
)
radix::RigidBody::~RigidBody ( )

Member Function Documentation

const char* radix::RigidBody::getName ( ) const
inlinevirtual

Implements radix::Component.

TypeId radix::RigidBody::getTypeId ( ) const
inlinevirtual

Implements radix::Component.

void radix::RigidBody::serialize ( serine::Archiver &  ar)
Todo:
RigidBody serialization

Field Documentation

btRigidBody* radix::RigidBody::body
btDefaultMotionState radix::RigidBody::motionState
std::shared_ptr<btCollisionShape> radix::RigidBody::shape

The documentation for this class was generated from the following files: