Third Person Cover Shooter  1.6
CoverShooter.CharacterMovement Struct Reference

Movement information of a character. More...

Public Member Functions

 CharacterMovement (Vector3 direction, float magnitude, float minDuration=0, bool isSlowedDown=false)
 Creates a character movement description. More...
 

Public Attributes

Vector3 Direction
 Direction to move to in world space. More...
 
float Magnitude
 Speed of movement. More...
 
float MinDuration
 Minimum duration the input and subsequent inputs are to be held. More...
 
bool IsSlowedDown
 Is the given movement slowed down by any reason. More...
 

Properties

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...
 

Detailed Description

Movement information of a character.

Constructor & Destructor Documentation

◆ CharacterMovement()

CoverShooter.CharacterMovement.CharacterMovement ( Vector3  direction,
float  magnitude,
float  minDuration = 0,
bool  isSlowedDown = false 
)

Creates a character movement description.

Member Data Documentation

◆ 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.

Property Documentation

◆ IsMoving

bool CoverShooter.CharacterMovement.IsMoving
get

Is there any movement.

◆ 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: