NTRT Simulator
v1.1
|
Public Member Functions | |
heightSensor (const btRigidBody *body, btVector3 pos, int nodeNumber, tgWorld &world) | |
btVector3 | getWorldPosition () const |
btVector3 | getRelativePosition () const |
double | getHeight () const |
int | getNodeNumber () const |
void | attach (tgObserver< heightSensor > *pObserver) |
void | notifyStep (double dt) |
void | notifySetup () |
void | notifyTeardown () |
Definition at line 26 of file heightSensor.h.
|
inherited |
Attach an observer to the subject of the observer.
[in,out] | pObserver | a pointer to an observer for the subject; do nothing if the pointer is NULL |
|
inherited |
Call tgObserver<T>::onSetup() on all observers in the order in which they were attached.
|
inherited |
Call tgObserver<T>::onStep() on all observers in the order in which they were attached.
[in] | dt | the number of seconds since the previous call; do nothing if not positive |
|
inherited |
Call tgObserver<T>::onTeardown() on all observers in the order in which they were attached.