#include "C4Include.h"
#include "game/C4Physics.h"
#include "landscape/C4Landscape.h"
#include "landscape/C4SolidMask.h"
#include "object/C4Def.h"
#include "object/C4Object.h"
#include "script/C4Effect.h"
Go to the source code of this file.
Functions | |
void | RedirectForce (C4Real &from, C4Real &to, int32_t tdir) |
void | ApplyFriction (C4Real &tval, int32_t percent) |
bool | ContactVtxCNAT (C4Object *object, BYTE cnat_dir) |
int32_t | ContactVtxWeight (C4Object *object) |
int32_t | ContactVtxFriction (C4Object *object) |
const char * | CNATName (int32_t cnat) |
bool | SimFlight (C4Real &x, C4Real &y, C4Real &xdir, C4Real &ydir, int32_t min_density, int32_t max_density, int32_t &iterations) |
bool | SimFlightHitsLiquid (C4Real start_x, C4Real start_y, C4Real xdir, C4Real ydir) |
Variables | |
const C4Real | FRedirect = C4REAL100(50) |
const C4Real | FFriction = C4REAL100(30) |
const C4Real | FixFullCircle = itofix(360) |
const C4Real | FixHalfCircle = FixFullCircle / 2 |
const C4Real | FloatFriction = C4REAL100(2) |
const C4Real | RotateAccel = C4REAL100(20) |
const C4Real | HitSpeed1 = C4REAL100(150) |
const C4Real | HitSpeed2 = itofix(2) |
const C4Real | HitSpeed3 = itofix(6) |
const C4Real | HitSpeed4 = itofix(8) |
const C4Real | DefaultGravAccel = C4REAL100(20) |
void ApplyFriction | ( | C4Real & | tval, |
int32_t | percent | ||
) |
Definition at line 52 of file C4Movement.cpp.
References FFriction.
Referenced by C4Object::DoMovement().
const char* CNATName | ( | int32_t | cnat | ) |
Definition at line 121 of file C4Movement.cpp.
References CNAT_Bottom, CNAT_Center, CNAT_Left, CNAT_None, CNAT_Right, and CNAT_Top.
Referenced by C4Object::Contact().
Definition at line 72 of file C4Movement.cpp.
References C4Object::Shape, and C4Shape::VtxContactCNAT.
Referenced by C4Object::DoMovement().
int32_t ContactVtxFriction | ( | C4Object * | object | ) |
Definition at line 109 of file C4Movement.cpp.
References C4Object::Shape, and C4Shape::VtxContactCNAT.
Referenced by C4Object::DoMovement().
int32_t ContactVtxWeight | ( | C4Object * | object | ) |
Definition at line 87 of file C4Movement.cpp.
References C4Object::Shape, C4Shape::VtxContactCNAT, and C4Shape::VtxX.
Referenced by C4Object::DoMovement().
Definition at line 45 of file C4Movement.cpp.
References Abs(), FRedirect, and Sign().
Referenced by C4Object::DoMovement().
bool SimFlight | ( | C4Real & | x, |
C4Real & | y, | ||
C4Real & | xdir, | ||
C4Real & | ydir, | ||
int32_t | min_density, | ||
int32_t | max_density, | ||
int32_t & | iterations | ||
) |
Definition at line 810 of file C4Movement.cpp.
References fixtoi(), GBackDensity(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), GravAccel, Inside(), itofix(), Landscape, and Sign().
Referenced by SimFlightHitsLiquid().
Definition at line 874 of file C4Movement.cpp.
References C4M_Liquid, C4M_Vehicle, DensityLiquid(), fixtoi(), GBackDensity(), GBackLiquid(), and SimFlight().
Referenced by ObjectComJump().
Definition at line 41 of file C4Movement.cpp.
Referenced by C4Landscape::CompileFunc(), and C4Landscape::ScenarioInit().
Definition at line 32 of file C4Movement.cpp.
Referenced by ApplyFriction().
Definition at line 33 of file C4Movement.cpp.
Referenced by C4Object::DoMovement().
const C4Real FixHalfCircle = FixFullCircle / 2 |
Definition at line 34 of file C4Movement.cpp.
Referenced by C4Object::DoMovement().
Definition at line 35 of file C4Movement.cpp.
Definition at line 31 of file C4Movement.cpp.
Referenced by RedirectForce().
Definition at line 37 of file C4Movement.cpp.
Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().
Definition at line 38 of file C4Movement.cpp.
Definition at line 39 of file C4Movement.cpp.
Definition at line 40 of file C4Movement.cpp.
Definition at line 36 of file C4Movement.cpp.
Referenced by C4Object::Push().