#include <CollisionResponseOperator.h>
Inheritance diagram for gator::CollisionResponseOperator:

Public Types | |
| typedef boost::shared_ptr< ani::Body > | EntityTypePtr |
Public Methods | |
| CollisionResponseOperator () | |
| virtual | ~CollisionResponseOperator () |
| void | setElastic (float e) |
| set the elasticity (e == 1, very bouncy). More... | |
| void | setFriction (float f) |
| set the elasticity (e == 0, no friction). More... | |
| virtual void | exec (ani::DynamicSystem< ani::Body > &ps, float timeDelta) |
| virtual void | setCollisionDetector (CollisionDetectorPtr detect) |
| tell the travel method how to collide with your scene. More... | |
If it collides, then it uses the collision function to determine magnitude/direction the responding forces should be.
Features:
Definition at line 18 of file CollisionResponseOperator.h.
|
|
Definition at line 21 of file CollisionResponseOperator.h. |
|
|
Definition at line 25 of file CollisionResponseOperator.h. References ani::Operator< ani::Body >::Operator(). |
|
|
Definition at line 31 of file CollisionResponseOperator.h. |
|
|
set the elasticity (e == 1, very bouncy).
Definition at line 36 of file CollisionResponseOperator.h. |
|
|
set the elasticity (e == 0, no friction).
Definition at line 42 of file CollisionResponseOperator.h. |
|
||||||||||||
|
Implements ani::Operator< ani::Body >. Definition at line 47 of file CollisionResponseOperator.h. References ani::Body::applyForce(), gator::computeCollisionForces(), ani::DynamicSystem< __EntityType >::entities(), ani::Body::linearVelocity(), ani::Body::mass(), ani::Body::position(), and ani::Body::setPosition(). |
|
|
tell the travel method how to collide with your scene. define your own collision detector, or use one predefined from gator. Definition at line 82 of file CollisionResponseOperator.h. References gator::CollisionDetectorPtr. |
1.2.15