#include "Bikex.h"
Definition at line 20 of file Bikex.h.
float Bikex::calcFPS |
( |
int |
dt | ) |
|
Calculate how long to sleep before building next frame it should return time in u_seconds to wait for the next frame to be built
Definition at line 216 of file Bikex.cpp.
void Bikex::calculatePlayerPosition |
( |
| ) |
|
Calculate the next x and z values for Player position
Definition at line 96 of file Bikex.cpp.
void Bikex::calculatePlayerRotation |
( |
| ) |
|
Calculate the next x, y and z values for Player rotation
Definition at line 112 of file Bikex.cpp.
Method that is going to be executed 30 times a second
Definition at line 163 of file Bikex.cpp.
void Bikex::printCurrState |
( |
| ) |
|
int Bikex::readDevices |
( |
| ) |
|
Read all necessary data from passive devices Return 0 if success != otherwise
Definition at line 146 of file Bikex.cpp.
void Bikex::setBreakIntensity |
( |
| ) |
|
Based on y value from unity, set the intensity on the break
Definition at line 118 of file Bikex.cpp.
int Bikex::writeDevices |
( |
| ) |
|
Write all necessary data to active devices Return 0 if success != otherwise
Definition at line 127 of file Bikex.cpp.
Current player's angle referred to the origin point [0, 0] it's going to be helpful when the player is making a curve speed and direction will vary depending on wich angle the player is turning to The angle is in degress: from 0 to 360
Definition at line 78 of file Bikex.h.
unsigned char Bikex::currBattery |
Current battery status
Definition at line 49 of file Bikex.h.
unsigned char Bikex::currDirection |
Current player's direction, if turning to the right or to the left, to the left
Definition at line 69 of file Bikex.h.
Current player's distance already biked, in meters
Definition at line 59 of file Bikex.h.
unsigned char Bikex::currHearBeat |
Current player's heart beat rate
Definition at line 54 of file Bikex.h.
Current player's position
Definition at line 39 of file Bikex.h.
Current player's rotation
Definition at line 44 of file Bikex.h.
unsigned char Bikex::currSpeed |
Current player's speed (intensity of going forward)
Definition at line 64 of file Bikex.h.
Time difference, it meas the time window until the next frame it's very useful to determine the next position by the speed dt is in seconds (will be very small)
Definition at line 29 of file Bikex.h.
How many frames per second
Definition at line 34 of file Bikex.h.
Our own reference to Ovr
Definition at line 88 of file Bikex.h.
The documentation for this class was generated from the following files: