|
void | Start () |
| Initalize at the beginning of the game More...
|
|
void | Update () |
| Update is called once per frame More...
|
|
void | HorizontalWheel () |
| The front wheels will go either rotate left or right by 45 degrees. More...
|
|
void | FrontWheelMovement () |
| The Front wheels should rotate forward/backward and should rotate with an angle of maxiumum of 45 to left and right More...
|
|
void | WheelSteering () |
| The steering for left or right to determine how far it should also rotate. More...
|
|
void | BackWheelMovement () |
| The back wheels should rotate and also accelerate/decelerate the tank More...
|
|
void | CannonRotation () |
| How far the cannon should rotate up and to its rest position. Max for up position is vertical (90 degrees) More...
|
|
void | TurretRotation () |
| Will rotate the turret left or right when the user press left or right arrow keys More...
|
|
void | TankMovement () |
| This is called in the update function. All funcitonality is done here for the tank movement like moving forward, backwards, left, or right. More...
|
|
void | ForwardBackward (float movement) |
| When the W or S key is pressed, the tank will move forward or backward respectively More...
|
|
void | LeftRight (float movement) |
| When the A or D key is pressed, the tank will move left or right respectively More...
|
|
◆ BackWheelMovement()
void PlayerController.BackWheelMovement |
( |
| ) |
|
|
private |
The back wheels should rotate and also accelerate/decelerate the tank
- Returns
- Returns Back Wheels Rotation
Definition at line 143 of file PlayerController.cs.
◆ CannonRotation()
void PlayerController.CannonRotation |
( |
| ) |
|
|
private |
How far the cannon should rotate up and to its rest position. Max for up position is vertical (90 degrees)
- Returns
- Returns Cannon Rotation
Definition at line 176 of file PlayerController.cs.
◆ ForwardBackward()
void PlayerController.ForwardBackward |
( |
float |
movement | ) |
|
|
private |
When the W or S key is pressed, the tank will move forward or backward respectively
- Returns
- Returns translate
Definition at line 315 of file PlayerController.cs.
◆ FrontWheelMovement()
void PlayerController.FrontWheelMovement |
( |
| ) |
|
|
private |
The Front wheels should rotate forward/backward and should rotate with an angle of maxiumum of 45 to left and right
- Returns
- Returns FrontWheel rotation/
Definition at line 95 of file PlayerController.cs.
◆ HorizontalWheel()
void PlayerController.HorizontalWheel |
( |
| ) |
|
|
private |
The front wheels will go either rotate left or right by 45 degrees.
- Pseudo Code
- If the input key is D, rotate the front wheels by 45 degrees
- else if the input key is A, rotate by -45 degrees
- Returns
- Returns horizontal
Definition at line 78 of file PlayerController.cs.
◆ LeftRight()
void PlayerController.LeftRight |
( |
float |
movement | ) |
|
|
private |
When the A or D key is pressed, the tank will move left or right respectively
- Returns
- Returns rotate
Definition at line 326 of file PlayerController.cs.
◆ Start()
void PlayerController.Start |
( |
| ) |
|
|
private |
◆ TankMovement()
void PlayerController.TankMovement |
( |
| ) |
|
|
private |
This is called in the update function. All funcitonality is done here for the tank movement like moving forward, backwards, left, or right.
- Returns
- Returns translate or rotation
Definition at line 269 of file PlayerController.cs.
◆ TurretRotation()
void PlayerController.TurretRotation |
( |
| ) |
|
|
private |
Will rotate the turret left or right when the user press left or right arrow keys
- Returns
- Returns Turret Rotation
Definition at line 237 of file PlayerController.cs.
◆ Update()
void PlayerController.Update |
( |
| ) |
|
|
private |
◆ WheelSteering()
void PlayerController.WheelSteering |
( |
| ) |
|
|
private |
The steering for left or right to determine how far it should also rotate.
- Returns
- Returns Steering Left or Right rotation
Definition at line 125 of file PlayerController.cs.
◆ BackWheelRotation
float PlayerController.BackWheelRotation |
◆ BackWheels
GameObject [] PlayerController.BackWheels |
|
private |
◆ Cannon
GameObject PlayerController.Cannon |
|
private |
◆ CannonSpeed
float PlayerController.CannonSpeed |
◆ FrontTurningWheels
GameObject [] PlayerController.FrontTurningWheels |
|
private |
◆ FrontWheelRotation
float PlayerController.FrontWheelRotation |
◆ FrontWheels
GameObject [] PlayerController.FrontWheels |
|
private |
◆ horizontal
float PlayerController.horizontal |
◆ RotationSpeed
float PlayerController.RotationSpeed |
◆ SteeringLeft
Transform PlayerController.SteeringLeft |
◆ SteeringRight
Transform PlayerController.SteeringRight |
◆ TankSpeed
float PlayerController.TankSpeed |
◆ Turret
GameObject PlayerController.Turret |
|
private |
The documentation for this class was generated from the following file: