SMovementState

C++
struct SMovementState : public SStanceState {
  Vec3 fireTarget;
  EStance stance;
  Vec3 animationEyeDirection;
  Vec3 movementDirection, lastMovementDirection;
  float desiredSpeed;
  float minSpeed;
  float normalSpeed;
  float maxSpeed;
  float slopeAngle;
  bool atMoveTarget;
  bool isAlive;
  bool isAiming;
  bool isFiring;
  bool isVisible;
  bool isMoving;
};
File

IMovementController.h

SMovementState::animationEyeDirection Data Member
C++
Vec3 animationEyeDirection;
Description

Eye direction reported from Animation [used for cinematic look-ats

SMovementState::atMoveTarget Data Member
C++
bool atMoveTarget;
SMovementState::desiredSpeed Data Member
C++
float desiredSpeed;
SMovementState::fireTarget Data Member
C++
Vec3 fireTarget;
Description

Target position to fire at, note the direction from weapon to the fire target can be different than aim direction. This value is un-smoothed target set by AI.

SMovementState::isAiming Data Member
C++
bool isAiming;
SMovementState::isAlive Data Member
C++
bool isAlive;
SMovementState::isFiring Data Member
C++
bool isFiring;
SMovementState::isMoving Data Member
C++
bool isMoving;
SMovementState::isVisible Data Member
C++
bool isVisible;
SMovementState::lastMovementDirection Data Member
C++
Vec3 lastMovementDirection;
SMovementState::maxSpeed Data Member
C++
float maxSpeed;
SMovementState::minSpeed Data Member
C++
float minSpeed;
SMovementState::movementDirection Data Member
C++
Vec3 movementDirection;
SMovementState::normalSpeed Data Member
C++
float normalSpeed;
SMovementState::slopeAngle Data Member
C++
float slopeAngle;
Description

Degrees of ground below character (positive when facing uphill, negative when facing downhill).

SMovementState::stance Data Member
C++
EStance stance;
Description

Stance of the character.

SMovementState::SMovementState Constructor
C++
SMovementState();