CollisionsManager is a class, which contains the method for collision detection and collision response.
More...
#include <CollisionsManager.h>
List of all members.
Public Member Functions |
| CollisionsManager () |
| Constractor of the class.
|
| ~CollisionsManager () |
| Destractor of the class.
|
void | CollisionWithCloth (Mass *mass, Mass *mass0, Mass *mass1, Mass *mass2) |
| Point Triangle Collision method for collision with the cloth.
|
void | CollisionWithObject (Mass *mass, const ngl::Vector &p0, const ngl::Vector &p1, const ngl::Vector &p2, float _criticalDistance, float _fricition, float _bumpiness) |
| Point Triangle Collision method for collision with the static object.
|
void | CollisionWithAnimatedObject (Mass *mass, const ngl::Vector &p0, const ngl::Vector &p1, const ngl::Vector &p2, const ngl::Vector &_triangleVelocity, float _criticalDistance, float _fricition, float _bumpiness) |
| Point Triangle Collision method for collision with the animated object.
|
Detailed Description
CollisionsManager is a class, which contains the method for collision detection and collision response.
Member Function Documentation
void CollisionsManager::CollisionWithAnimatedObject |
( |
Mass * |
mass, |
|
|
const ngl::Vector & |
p0, |
|
|
const ngl::Vector & |
p1, |
|
|
const ngl::Vector & |
p2, |
|
|
const ngl::Vector & |
_triangleVelocity, |
|
|
float |
_criticalDistance, |
|
|
float |
_fricition, |
|
|
float |
_bumpiness | |
|
) |
| | |
Point Triangle Collision method for collision with the animated object.
- Parameters:
-
[in,out] | mass | The point to test the collision |
[in,out] | p0 | point0 of the triangle to test the collision with |
[in,out] | p1 | point1 of the triangle to test the collision with |
[in,out] | p2 | point2 of the triangle to test the collision with |
[in] | _triangleVelocity | the velocity of the triangle with which the collision occured |
[in] | _criticalDistance | is used to maintain the distance between the cloth and the object |
[in] | _fricition | parameter is used to define the behaviour of object when collision occures |
[in] | _bumpiness | parameter is used to define the behaviour of object when collision occures |
void CollisionsManager::CollisionWithCloth |
( |
Mass * |
mass, |
|
|
Mass * |
mass0, |
|
|
Mass * |
mass1, |
|
|
Mass * |
mass2 | |
|
) |
| | |
Point Triangle Collision method for collision with the cloth.
- Parameters:
-
[in,out] | mass | The point to test the collision |
[in,out] | mass0 | Mass0 of the triangle to test the collision with |
[in,out] | mass1 | Mass1 of the triangle to test the collision with |
[in,out] | mass2 | Mass2 of the triangle to test the collision with |
void CollisionsManager::CollisionWithObject |
( |
Mass * |
mass, |
|
|
const ngl::Vector & |
p0, |
|
|
const ngl::Vector & |
p1, |
|
|
const ngl::Vector & |
p2, |
|
|
float |
_criticalDistance, |
|
|
float |
_fricition, |
|
|
float |
_bumpiness | |
|
) |
| | |
Point Triangle Collision method for collision with the static object.
- Parameters:
-
[in,out] | mass | The point to test the collision |
[in,out] | p0 | point0 of the triangle to test the collision with |
[in,out] | p1 | point1 of the triangle to test the collision with |
[in,out] | p2 | point2 of the triangle to test the collision with |
[in] | _criticalDistance | is used to maintain the distance between the cloth and the object |
[in] | _fricition | parameter is used to define the behaviour of object when collision occures |
[in] | _bumpiness | parameter is used to define the behaviour of object when collision occures |
The documentation for this class was generated from the following files: