SAIBodyInfo

C++
struct SAIBodyInfo {
  Vec3 vEyePos;
  Vec3 vEyeDir;
  Vec3 vEyeDirAnim;
  Vec3 vEntityDir;
  Vec3 vAnimBodyDir;
  Vec3 vMoveDir;
  Vec3 vUpDir;
  Vec3 vFireDir;
  Vec3 vFirePos;
  float maxSpeed;
  float normalSpeed;
  float minSpeed;
  EStance stance;
  AABB stanceSize;
  AABB colliderSize;
  bool isAiming;
  bool isFiring;
  bool isMoving;
  float lean;
  float peekOver;
  float slopeAngle;
  EntityId linkedVehicleEntityId;
};
File

IAgent.h

SAIBodyInfo::colliderSize Data Member
C++
AABB colliderSize;
Description

Approximate local bounds of the stance, relative to the entity position.

SAIBodyInfo::isAiming Data Member
C++
bool isAiming;
SAIBodyInfo::isFiring Data Member
C++
bool isFiring;
SAIBodyInfo::isMoving Data Member
C++
bool isMoving;
SAIBodyInfo::lean Data Member
C++
float lean;
Description

The amount the character is leaning.

SAIBodyInfo::linkedVehicleEntityId Data Member
C++
EntityId linkedVehicleEntityId;
SAIBodyInfo::maxSpeed Data Member
C++
float maxSpeed;
Description

Maximum speed i can move at.

SAIBodyInfo::minSpeed Data Member
C++
float minSpeed;
Description

Minimum speed i need to move anywhere (otherwise I'll consider myself stopped).

SAIBodyInfo::normalSpeed Data Member
C++
float normalSpeed;
Description

The "normal" (walking) speed.

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

The amount the character is peaking-over.

SAIBodyInfo::slopeAngle Data Member
C++
float slopeAngle;
SAIBodyInfo::stance Data Member
C++
EStance stance;
SAIBodyInfo::stanceSize Data Member
C++
AABB stanceSize;
Description

Approximate local bounds of the stance, relative to the entity position.

SAIBodyInfo::vAnimBodyDir Data Member
C++
Vec3 vAnimBodyDir;
SAIBodyInfo::vEntityDir Data Member
C++
Vec3 vEntityDir;
SAIBodyInfo::vEyeDir Data Member
C++
Vec3 vEyeDir;
Description

Direction of head (where I'm looking at).

SAIBodyInfo::vEyeDirAnim Data Member
C++
Vec3 vEyeDirAnim;
Description

Direction of head from animation .

SAIBodyInfo::vEyePos Data Member
C++
Vec3 vEyePos;
SAIBodyInfo::vFireDir Data Member
C++
Vec3 vFireDir;
Description

Firing direction.

SAIBodyInfo::vFirePos Data Member
C++
Vec3 vFirePos;
Description

Firing position.

SAIBodyInfo::vMoveDir Data Member
C++
Vec3 vMoveDir;
Description

Direction of entity movement.

SAIBodyInfo::vUpDir Data Member
C++
Vec3 vUpDir;
Description

Direction of entity (my up).

SAIBodyInfo::GetBodyDir Method
C++
const Vec3& GetBodyDir() const;
Description

If valid animated body direction present, use that for better precision

SAIBodyInfo::GetEyeDir Method
C++
const Vec3& GetEyeDir() const;
Description

If valid animated eye direction present, use that for better precision

SAIBodyInfo::GetLinkedVehicleEntity Method
C++
IEntity* GetLinkedVehicleEntity() const;
SAIBodyInfo::SAIBodyInfo Constructor
C++
SAIBodyInfo();