Clean-up: Change indentation to tabs
This commit is contained in:
parent
9c9ec45304
commit
bb20d4a520
6 changed files with 301 additions and 301 deletions
32
Player.h
32
Player.h
|
@ -11,28 +11,28 @@ static constexpr float deg_to_rad = 3.14159265/180;
|
|||
|
||||
class Player {
|
||||
public:
|
||||
Player(float x, float y, float alpha);
|
||||
Player(float x, float y, float alpha);
|
||||
|
||||
float x;
|
||||
float y;
|
||||
float orientation;
|
||||
float x;
|
||||
float y;
|
||||
float orientation;
|
||||
|
||||
float moveSpeed = 5;
|
||||
float rotationSpeed = 180;
|
||||
float moveSpeed = 5;
|
||||
float rotationSpeed = 180;
|
||||
|
||||
float currentMoveSpeedX = 0;
|
||||
float currentMoveSpeedY = 0;
|
||||
float currentMoveSpeedX = 0;
|
||||
float currentMoveSpeedY = 0;
|
||||
|
||||
float currentRotationSpeed = 0;
|
||||
float currentRotationSpeed = 0;
|
||||
|
||||
/* View properties. */
|
||||
float fov = 70;
|
||||
float sensorSize = 0.035; /* 35mm, about equivalent to human eye ? */
|
||||
float focalLength = sensorSize / (2*tanf((fov*deg_to_rad)/2));
|
||||
/* View properties. */
|
||||
float fov = 70;
|
||||
float sensorSize = 0.035; /* 35mm, about equivalent to human eye ? */
|
||||
float focalLength = sensorSize / (2*tanf((fov*deg_to_rad)/2));
|
||||
|
||||
void move(float dx, float dy);
|
||||
void rotate(float alpha);
|
||||
void updateSpeed(float localX, float localY);
|
||||
void move(float dx, float dy);
|
||||
void rotate(float alpha);
|
||||
void updateSpeed(float localX, float localY);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue