SStanceState

C++
struct SStanceState {
  Vec3 pos;
  Vec3 entityDirection;
  Vec3 animationBodyDirection;
  Vec3 upDirection;
  Vec3 weaponPosition;
  Vec3 aimDirection;
  Vec3 fireDirection;
  Vec3 eyePosition;
  Vec3 eyeDirection;
  float lean;
  float peekOver;
  AABB m_StanceSize;
  AABB m_ColliderSize;
};
File

IMovementController.h

SStanceState::aimDirection Data Member
C++
Vec3 aimDirection;
Description

Direction from the weapon position to aim target, used for representation.

SStanceState::animationBodyDirection Data Member
C++
Vec3 animationBodyDirection;
SStanceState::entityDirection Data Member
C++
Vec3 entityDirection;
SStanceState::eyeDirection Data Member
C++
Vec3 eyeDirection;
Description

Direction from the eye position to the lookat or aim-at target.

SStanceState::eyePosition Data Member
C++
Vec3 eyePosition;
Description

Game logic position of the eye of the character.

SStanceState::fireDirection Data Member
C++
Vec3 fireDirection;
Description

Direction from the weapon position to the fire target, used for emitting the bullets.

SStanceState::lean Data Member
C++
float lean;
Description

The amount the character is leaning -1 = left, 1 = right;

SStanceState::m_ColliderSize Data Member
C++
AABB m_ColliderSize;
Description

The size of only the collider in this stance.

SStanceState::m_StanceSize Data Member
C++
AABB m_StanceSize;
Description

Game logic bounds of the character related to the 'pos'.

SStanceState::peekOver Data Member
C++
float peekOver;
Description

The amount the character is peeking over 0 = none, 1 = max;

SStanceState::pos Data Member
C++
Vec3 pos;
Description

Position of the character.

SStanceState::upDirection Data Member
C++
Vec3 upDirection;
Description

Up direction of the character.

SStanceState::weaponPosition Data Member
C++
Vec3 weaponPosition;
Description

Game logic position of the weapon of the character.

SStanceState::SStanceState Constructor
C++
SStanceState();