QcBoatControls Struct
What the driver of a boat does in one tick (decision E-920): paddle forward or back, turn left or right. More...
| Header: | #include <common/physics/QcBoatMotion.h> |
Public Variables
Static Public Members
| QcBoatControls | of(const QcPlayerInput &input) |
Detailed Description
From the keys of the player's input: forward and back paddle, left and right (strafe) turn.
Member Function Documentation
[static] QcBoatControls QcBoatControls::of(const QcPlayerInput &input)
Returns the controls of the keys of input.
Member Variable Documentation
double QcBoatControls::forward
In [-1, 1]: forward paddles ahead, backwards brakes and paddles back slowly.
double QcBoatControls::turn
In [-1, 1]: positive turns right (the yaw grows), negative left.