#include <pos_rot.hpp>
Public Member Functions | |
void | add (PosRot p) |
void | add (irr::core::vector3df pos, irr::core::vector3df rot) |
PosRot (PosRot &p) | |
PosRot (irr::core::vector3df pos, irr::core::vector3df rot) | |
PosRot () | |
default constructor. set position and rotation to 0,0,0 | |
~PosRot () | |
destructor | |
Public Attributes | |
irr::core::vector3df | position |
irr::core::vector3df | rotation |
I write it to management a thing that require position and rotation but not scale. So using a matrix4 will be increase used RAM without reasons
irr::newton::PosRot::PosRot | ( | ) | [inline] |
default constructor. set position and rotation to 0,0,0
irr::newton::PosRot::PosRot | ( | irr::core::vector3df | pos, | |
irr::core::vector3df | rot | |||
) | [inline] |
constructor
pos | the position | |
rot | the rotation |
irr::newton::PosRot::PosRot | ( | PosRot & | p | ) | [inline] |
copy contructor
p | the object to copy from |
irr::newton::PosRot::~PosRot | ( | ) | [inline] |
destructor
void irr::newton::PosRot::add | ( | PosRot | p | ) | [inline] |
void irr::newton::PosRot::add | ( | irr::core::vector3df | pos, | |
irr::core::vector3df | rot | |||
) | [inline] |
get 2 vectors and add 1 to position and 1 to rotation
pos | the vector to add to position | |
rot | the vector to add to rotation |
irr::core::vector3df irr::newton::PosRot::position |
the position
irr::core::vector3df irr::newton::PosRot::rotation |
the rotation