Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::FloorConstraint Class Reference

#include <FloorConstraint.h>

Inheritance diagram for OpenCAL::FloorConstraint:

Inheritance graph
[legend]
Collaboration diagram for OpenCAL::FloorConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FloorConstraint (PhysicsSystem *parent)
 FloorConstraint (PhysicsSystem *parent, Plane *floorPlane)
void satisfy ()

Protected Attributes

Planem_plane
float m_height
float m_restitution
 "Bounciness"
float m_friction

Detailed Description

This is a very simple floor collision constraint, Created as in the nehe.gamedev.net rope tutorial

Todo:
Use a plane in stead of just a height

Definition at line 29 of file FloorConstraint.h.


Member Function Documentation

void OpenCAL::FloorConstraint::satisfy  )  [virtual]
 

Reimplemented from OpenCAL::Agent.

Definition at line 52 of file FloorConstraint.cpp.

References OpenCAL::Physical::addForce(), OpenCAL::Plane::getNormal(), OpenCAL::Object::getPosition(), OpenCAL::Object::getPositionP(), OpenCAL::Physical::getVelocity(), OpenCAL::Physical::getVelocityP(), OpenCAL::Utils::Vector3::getY(), m_restitution, and OpenCAL::Utils::Vector3::setY().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:31 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8