OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CollisionState Struct Reference

#include <Collisions.h>

Public Member Functions

bool PrepareAndCheckIfStationary (Duration dt=0_ticks)
 

Public Attributes

bool check_hi
 
float radius_lo
 
float radius_hi
 
Vec3f position_lo
 
Vec3f position_hi
 
Vec3f new_position_lo
 
Vec3f new_position_hi
 
Vec3f velocity
 
Vec3f direction
 
float speed = 0
 
float total_move_distance
 
float move_distance
 
float adjusted_move_distance
 
int uSectorID = 0
 
Pid pid
 
BBoxf bbox
 
Vec3f collisionPos
 

Member Function Documentation

◆ PrepareAndCheckIfStationary()

bool CollisionState::PrepareAndCheckIfStationary ( Duration  dt = 0_ticks)
Original binary offset:
0x0047050A.

Prepares this struct by filling all necessary fields, and checks whether there is actually no movement.

Parameters
dtTime delta. Pass 0_ticks to take the correct value from global pEventTimer.
Returns
True if there is no movement, false otherwise.

Member Data Documentation

◆ adjusted_move_distance

float CollisionState::adjusted_move_distance

◆ bbox

BBoxf CollisionState::bbox

◆ check_hi

bool CollisionState::check_hi

◆ collisionPos

Vec3f CollisionState::collisionPos

◆ direction

Vec3f CollisionState::direction

◆ move_distance

float CollisionState::move_distance

◆ new_position_hi

Vec3f CollisionState::new_position_hi

◆ new_position_lo

Vec3f CollisionState::new_position_lo

◆ pid

Pid CollisionState::pid

◆ position_hi

Vec3f CollisionState::position_hi

◆ position_lo

Vec3f CollisionState::position_lo

◆ radius_hi

float CollisionState::radius_hi

◆ radius_lo

float CollisionState::radius_lo

◆ speed

float CollisionState::speed = 0

◆ total_move_distance

float CollisionState::total_move_distance

◆ uSectorID

int CollisionState::uSectorID = 0

◆ velocity

Vec3f CollisionState::velocity

The documentation for this struct was generated from the following files: