KJB
|
#include <psi_cylinder_world.h>
Public Member Functions | |
Entity_state () | |
virtual void | render () const |
kjb::Cylinder | get_cylinder () const |
const kjb::Vector & | get_position () const |
kjb::Vector | get_position_3d () const |
const kjb::Vector & | get_direction () const |
kjb::Vector | get_direction_3d () const |
double | get_heading () const |
double | get_height () const |
double | get_width () const |
void | set_position (const kjb::Vector &p) |
void | set_heading (double heading) |
direction in radians More... | |
void | set_height (double h) |
void | set_width (double w) |
void | move_forward (double distance) |
This class manages the state of an "entity" object in the scene.
By convention, +y is up, -z is roughly "into" screen, and +x is right.
"Heading" describes facing direction, with zero representing the +z direction, and rotating counter-clockwise as angle increases (right-handed convention)
kjb::psi::Entity_state::Entity_state | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
direction in radians
|
inline |
|
inline |
|
inline |