Movement information of a character.
More...
|
| CharacterMovement (Vector3 direction, float magnitude, float minDuration=0, bool isSlowedDown=false) |
| Creates a character movement description. More...
|
|
|
Vector3 | Value [get] |
| Direction multiplier by Magnitude. More...
|
|
bool | IsMoving [get] |
| Is there any movement. More...
|
|
bool | IsRunning [get] |
| Is Magnitude great enough for the character to be running, but not sprinting. More...
|
|
bool | IsSprinting [get] |
| Is Magnitude great enough for the character to be sprinting. More...
|
|
Movement information of a character.
◆ CharacterMovement()
CoverShooter.CharacterMovement.CharacterMovement |
( |
Vector3 |
direction, |
|
|
float |
magnitude, |
|
|
float |
minDuration = 0 , |
|
|
bool |
isSlowedDown = false |
|
) |
| |
Creates a character movement description.
◆ Direction
Vector3 CoverShooter.CharacterMovement.Direction |
Direction to move to in world space.
◆ IsSlowedDown
bool CoverShooter.CharacterMovement.IsSlowedDown |
Is the given movement slowed down by any reason.
Value used to tell the motor that it's walking because of the aim mode.
◆ Magnitude
float CoverShooter.CharacterMovement.Magnitude |
Speed of movement.
1 is running, 0.5 is walking.
◆ MinDuration
float CoverShooter.CharacterMovement.MinDuration |
Minimum duration the input and subsequent inputs are to be held.
◆ IsMoving
bool CoverShooter.CharacterMovement.IsMoving |
|
get |
◆ IsRunning
bool CoverShooter.CharacterMovement.IsRunning |
|
get |
Is Magnitude great enough for the character to be running, but not sprinting.
◆ IsSprinting
bool CoverShooter.CharacterMovement.IsSprinting |
|
get |
Is Magnitude great enough for the character to be sprinting.
◆ Value
Vector3 CoverShooter.CharacterMovement.Value |
|
get |
Direction multiplier by Magnitude.
The documentation for this struct was generated from the following file: