This component replicates the player controls of a tank or space ship using keys to move forward / backward and rotating. This uses a dynamic RigidBody.
Suggested use:
Use for top down games with acceleration based movement.
Examples found in: Project 5
| Components | |||
|---|---|---|---|
| Property | Type | Description | Default Value | Component Properties |
| Horizontal Input | String | Virtual button used to rotate left and right. | Horizontal |
| Vertical Input | String | Virtual button used to move up and down. | Vertical |
| Rotation Speed | Float | How many degrees per second the object will rotate. | 360 |
| Acceleration Speed | Float | Speed the object will move at per second. | 5 |
| Max Speed | Float | 10 | The maximum speed the object is allowed to reach. |
| Drag Factor | Float | Drag factor to be applied to the object. Higher values means less drag. | 0.98 | Debug Properties |
| Print Debug Info | Boolean | Toggle console debug messages. | False |
| Label | String | Notes for the user about this component. This does nothing to the game or build. | None |