22 #ifndef CAFU_PHYSICS_HPP_INCLUDED
23 #define CAFU_PHYSICS_HPP_INCLUDED
25 #include "Math3D/BoundingBox.hpp"
28 namespace cf {
namespace ClipSys {
class ClipModelT; } }
29 namespace cf {
namespace ClipSys {
class ClipWorldT; } }
42 void MoveHuman(
float FrameTime,
unsigned short Heading,
const VectorT& WishVelocity,
43 const VectorT& WishVelLadder,
bool WishJump,
bool& OldWishJump,
double StepHeight);
48 enum PosCatT { InAir, OnSolid };
50 PosCatT CategorizePosition()
const;
51 void ApplyFriction(
double FrameTime, PosCatT PosCat);
52 void ApplyAcceleration(
double FrameTime, PosCatT PosCat,
const VectorT& WishVelocity);
53 void ApplyGravity(
double FrameTime, PosCatT PosCat);
54 void FlyMove(
double TimeLeft);
55 void GroundMove(
double FrameTime,
double StepHeight);
This class implements the physics for moving entities through the world.
Definition: Physics.hpp:35
A clip model represents an object in the world against which clipping queries can be performed...
Definition: ClipModel.hpp:46
The clip world manages all the clip models that exist in a world (their "union"). ...
Definition: ClipWorld.hpp:42