This component replicates the movement functionality of top-down characters moving orthogonally at constant velocity. This uses a dynamic RigidBody.
Suggested use:
Attach to an object, such as the Player, to enable top-down movement controls. Default input keys are WASD or arrow keys. The object will move at the given move speed in the direction pressed.
Note: The movement will feel very floaty with the default input settings. It is suggested to copy the InputManager.asset from the DragonPack ProjectSettings into your project's Project Settings - however, this will reset any changes you've made. To maintain any changes you've made, manually input these numbers into the Input section of the Project Settings:
Horizontal: Vertical:
Gravity: 10000 Gravity: 10000
Dead: 0.9 Dead: 0.45
Sensitivity: 10000 Sensitivity: 10000
Examples found in: Project 2
| Components | |||
|---|---|---|---|
| Property | Type | Description | Default Value | Component Properties |
| Horizontal Input | String | Virtual button used to move left and right. | Horizontal |
| Vertical Input | String | Virtual button used to move up and down. | Vertical |
| Move Speed | Integer | Speed at which the character will move. | 8 | 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 |