#include <CPhysicsEntity.h>
Inherits IPhysicsEntity.
Public Member Functions | |
| CPhysicsEntity () | |
| ~CPhysicsEntity () | |
| void | init (NewtonWorld *world, NewtonBody *body, ISceneNode *node, CLog *logger) |
| void | serialize (stringc file) |
| void | setMaterial (int material) |
| void | setPosition (vector3df position) |
| Set the position. | |
| void | setRotation (vector3df rotation) |
| Set the rotation. | |
| void | setScale (vector3df scale) |
| Set the scale. | |
| vector3df | getPosition () |
| Get position. | |
| vector3df | getRotation () |
| Get rotation. | |
| vector3df | getScale () |
| Get scale. | |
| vector3df | getSize () |
| NewtonBody * | getBody () |
| Get a pointer to the Newton body. You should only need this if you need to make calls directly to Newton. | |
| ISceneNode * | getNode () |
| Get a pointer to the Irrlicht SceneNode. | |
| void | createConvexHullModifier () |
| matrix4 | getMatrix () |
| void | setMatrix (matrix4 matrix) |
| void | setUserID (int id) |
| int | getUserID () |
| f32 | calculateVolume () |
| vector3df | calculateInertia () |
| vector3df | calculateCentreOfMass () |
Public Attributes | |
| const NewtonBody * | waterBody |
Static Protected Member Functions | |
| static void _cdecl | writeToFile (void *serializeHandle, const void *buffer, size_t size) |
| static void _cdecl | destructor (const NewtonBody *body) |
Protected Attributes | |
| NewtonWorld * | m_world |
| ISceneNode * | m_node |
| NewtonCollision * | m_modifier |
| vector3df | m_size |
| array< NewtonCollision * > | m_compoundArray |
| CLog * | m_log |
| CPhysicsEntity::CPhysicsEntity | ( | ) |
| CPhysicsEntity::~CPhysicsEntity | ( | ) |
| void CPhysicsEntity::init | ( | NewtonWorld * | world, | |
| NewtonBody * | body, | |||
| ISceneNode * | node, | |||
| CLog * | logger | |||
| ) |
| void CPhysicsEntity::serialize | ( | stringc | file | ) | [virtual] |
Implements IPhysicsEntity.
| void CPhysicsEntity::setMaterial | ( | int | material | ) | [virtual] |
Implements IPhysicsEntity.
| void CPhysicsEntity::setPosition | ( | vector3df | position | ) | [virtual] |
| void CPhysicsEntity::setRotation | ( | vector3df | rotation | ) | [virtual] |
| void CPhysicsEntity::setScale | ( | vector3df | scale | ) | [virtual] |
| vector3df CPhysicsEntity::getPosition | ( | ) | [virtual] |
| vector3df CPhysicsEntity::getRotation | ( | ) | [virtual] |
| vector3df CPhysicsEntity::getScale | ( | ) | [virtual] |
| vector3df CPhysicsEntity::getSize | ( | ) |
| NewtonBody * CPhysicsEntity::getBody | ( | ) | [virtual] |
Get a pointer to the Newton body. You should only need this if you need to make calls directly to Newton.
Implements IPhysicsEntity.
| ISceneNode * CPhysicsEntity::getNode | ( | ) | [virtual] |
| void CPhysicsEntity::createConvexHullModifier | ( | ) | [virtual] |
Implements IPhysicsEntity.
| matrix4 CPhysicsEntity::getMatrix | ( | ) | [virtual] |
Implements IPhysicsEntity.
| void CPhysicsEntity::setMatrix | ( | matrix4 | matrix | ) | [virtual] |
Implements IPhysicsEntity.
| void CPhysicsEntity::setUserID | ( | int | id | ) | [virtual] |
Implements IPhysicsEntity.
| int CPhysicsEntity::getUserID | ( | ) | [virtual] |
Implements IPhysicsEntity.
| f32 CPhysicsEntity::calculateVolume | ( | ) | [virtual] |
Implements IPhysicsEntity.
| vector3df CPhysicsEntity::calculateInertia | ( | ) | [virtual] |
Implements IPhysicsEntity.
| vector3df CPhysicsEntity::calculateCentreOfMass | ( | ) | [virtual] |
Implements IPhysicsEntity.
| void CPhysicsEntity::writeToFile | ( | void * | serializeHandle, | |
| const void * | buffer, | |||
| size_t | size | |||
| ) | [static, protected] |
| void _cdecl CPhysicsEntity::destructor | ( | const NewtonBody * | body | ) | [static, protected] |
| const NewtonBody* CPhysicsEntity::waterBody |
NewtonWorld* CPhysicsEntity::m_world [protected] |
ISceneNode* CPhysicsEntity::m_node [protected] |
NewtonCollision* CPhysicsEntity::m_modifier [protected] |
vector3df CPhysicsEntity::m_size [protected] |
array<NewtonCollision*> CPhysicsEntity::m_compoundArray [protected] |
CLog* CPhysicsEntity::m_log [protected] |
1.5.1-p1