OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
MWPhysics Namespace Reference

Classes

class  PtrHolder
 
class  Actor
 
class  Stepper
 
class  MovementSolver
 
class  HeightField
 
class  Object
 
class  DeepestNotMeContactTestResultCallback
 
class  ClosestNotMeRayResultCallback
 
class  ContactTestResultCallback
 
class  PhysicsSystem
 
class  ClosestNotMeConvexResultCallback
 
struct  ActorTracer
 

Typedefs

typedef std::vector< std::pair
< MWWorld::Ptr, osg::Vec3f > > 
PtrVelocityList
 

Enumerations

enum  CollisionType {
  CollisionType_World = 1<<0, CollisionType_Door = 1<<1, CollisionType_Actor = 1<<2, CollisionType_HeightMap = 1<<3,
  CollisionType_Projectile = 1<<4, CollisionType_Water = 1<<5
}
 

Functions

btVector3 toBullet (const osg::Vec3f &vec)
 
btQuaternion toBullet (const osg::Quat &quat)
 
osg::Vec3f toOsg (const btVector3 &vec)
 
osg::Quat toOsg (const btQuaternion &quat)
 
static bool isActor (const btCollisionObject *obj)
 
template<class Vec3 >
static bool isWalkableSlope (const Vec3 &normal)
 
static bool canStepDown (const ActorTracer &stepper)
 

Variables

static const float sMaxSlope = 49.0f
 
static const float sStepSizeUp = 34.0f
 
static const float sStepSizeDown = 62.0f
 
static const float sMinStep = 10.f
 
static const int sMaxIterations = 8
 

Typedef Documentation

typedef std::vector<std::pair<MWWorld::Ptr,osg::Vec3f> > MWPhysics::PtrVelocityList

Enumeration Type Documentation

Enumerator
CollisionType_World 
CollisionType_Door 
CollisionType_Actor 
CollisionType_HeightMap 
CollisionType_Projectile 
CollisionType_Water 

Function Documentation

static bool MWPhysics::canStepDown ( const ActorTracer &  stepper)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static bool MWPhysics::isActor ( const btCollisionObject *  obj)
static

Here is the caller graph for this function:

template<class Vec3 >
static bool MWPhysics::isWalkableSlope ( const Vec3 &  normal)
static

Here is the caller graph for this function:

btVector3 MWPhysics::toBullet ( const osg::Vec3f &  vec)
inline

Here is the caller graph for this function:

btQuaternion MWPhysics::toBullet ( const osg::Quat &  quat)
inline
osg::Vec3f MWPhysics::toOsg ( const btVector3 &  vec)
inline

Here is the caller graph for this function:

osg::Quat MWPhysics::toOsg ( const btQuaternion &  quat)
inline

Variable Documentation

const int MWPhysics::sMaxIterations = 8
static
const float MWPhysics::sMaxSlope = 49.0f
static
const float MWPhysics::sMinStep = 10.f
static
const float MWPhysics::sStepSizeDown = 62.0f
static
const float MWPhysics::sStepSizeUp = 34.0f
static