#include <palSensors.h>
Public Member Functions | |
void | Init (palBody *body, Float axis_x, Float axis_y, Float axis_z) |
Float | GetAngle () |
Float palGyroscopeSensor::GetAngle | ( | ) |
Return the anglular velocity (radians)
void palGyroscopeSensor::Init | ( | palBody * | body, | |
Float | axis_x, | |||
Float | axis_y, | |||
Float | axis_z | |||
) |
Initializes the Gyroscope sensor. Attaches a gyroscope to a given body, with a given sense direction.
body | The body which the sensor is attached to. | |
axis_x | The direction vector (x) | |
axis_y | The direction vector (y) | |
axis_z | The direction vector (z) |