00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef OPENCAL_FLOORCONSTRAINT_H
00012
#define OPENCAL_FLOORCONSTRAINT_H
00013
00014
00015
#include <OpenCAL/global.h>
00016
#include <OpenCAL/Constraint.h>
00017
00018
namespace OpenCAL
00019 {
00020
00021
class Plane;
00022
00029 class OPENCAL_API FloorConstraint:
public Constraint
00030 {
00031
protected:
00032
00033
Plane *m_plane;
00034
float m_height;
00035
00036 float m_restitution;
00037
float m_friction;
00038
00039
public:
00040
00041 FloorConstraint(
PhysicsSystem *parent);
00042 FloorConstraint(
PhysicsSystem *parent,
Plane *floorPlane);
00043
virtual ~FloorConstraint();
00044
00045
00046
void satisfy();
00047 };
00048 }
00049
00050
#endif // OPENCAL_FLOORCONSTRAINT_H