OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
obf::Physics::Impl Struct Reference

Classes

struct  Vehicle
struct  Soldier
struct  Ladder
struct  Shot

Public Member Functions

void soldier (Soldier &s)
void projectiles ()
int armor (const Vehicle &v, RVec3 from, Vec3 dir) const
void forces (Vehicle &v)
void animate (Vehicle &v)
void wings (Vehicle &v, const RMat44 &T, Vec3 lin, Vec3 ang, RVec3 com)
bool floats (Vehicle &v, const RMat44 &T, Vec3 lin, Vec3 ang, RVec3 com)

Public Attributes

BpLayers bp
ObjVsBp ovb
ObjPair pair
TempAllocatorImpl temp {32 * 1024 * 1024}
JobSystemSingleThreaded jobs {cMaxPhysicsJobs}
PhysicsSystem sys
std::map< std::string, RefConst< Shape > > meshes
std::vector< Vehicle > vehicles
std::vector< Soldier > soldiers
std::vector< Ladder > ladders
int next_shot = 1
std::vector< Shot > shots
std::vector< Physics::Hit > hits
float acc = 0
float water = -1e9f

Member Function Documentation

◆ animate()

void obf::Physics::Impl::animate ( Vehicle & v)

◆ armor()

int obf::Physics::Impl::armor ( const Vehicle & v,
RVec3 from,
Vec3 dir ) const

◆ floats()

bool obf::Physics::Impl::floats ( Vehicle & v,
const RMat44 & T,
Vec3 lin,
Vec3 ang,
RVec3 com )

◆ forces()

void obf::Physics::Impl::forces ( Vehicle & v)

◆ projectiles()

void obf::Physics::Impl::projectiles ( )

◆ soldier()

void obf::Physics::Impl::soldier ( Soldier & s)

◆ wings()

void obf::Physics::Impl::wings ( Vehicle & v,
const RMat44 & T,
Vec3 lin,
Vec3 ang,
RVec3 com )

Member Data Documentation

◆ acc

float obf::Physics::Impl::acc = 0

◆ bp

BpLayers obf::Physics::Impl::bp

◆ hits

std::vector<Physics::Hit> obf::Physics::Impl::hits

◆ jobs

JobSystemSingleThreaded obf::Physics::Impl::jobs {cMaxPhysicsJobs}

◆ ladders

std::vector<Ladder> obf::Physics::Impl::ladders

◆ meshes

std::map<std::string, RefConst<Shape> > obf::Physics::Impl::meshes

◆ next_shot

int obf::Physics::Impl::next_shot = 1

◆ ovb

ObjVsBp obf::Physics::Impl::ovb

◆ pair

ObjPair obf::Physics::Impl::pair

◆ shots

std::vector<Shot> obf::Physics::Impl::shots

◆ soldiers

std::vector<Soldier> obf::Physics::Impl::soldiers

◆ sys

PhysicsSystem obf::Physics::Impl::sys

◆ temp

TempAllocatorImpl obf::Physics::Impl::temp {32 * 1024 * 1024}

◆ vehicles

std::vector<Vehicle> obf::Physics::Impl::vehicles

◆ water

float obf::Physics::Impl::water = -1e9f

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