|
physics
|
A data structure to pass data received from a collision to the solver. More...
#include "contact.hpp"
Public Member Functions | |
| Contact (CollisionBody &hullA, CollisionBody &hullB) | |
| Constructor, instantiated with the collision query between two CollisionBody objects. More... | |
| int | applyImpulse () |
| Impulse-solver function, applies both normal impulse and friction impulses. More... | |
| int | preStep (float dt) |
| Apply impulse from previous frame for better coherence. More... | |
Public Attributes | |
| vec3 | normal = vec3(0,0,0) |
| vec3 | tangent = vec3(0,0,0) |
| vec3 | bitangent = vec3(0,0,0) |
| vec3 | collision_point |
| float | penetration = 0 |
| float | bias = 0 |
| float | effective_mass_bitangent = 0.0f |
| float | effective_mass_tangent = 0.0f |
| float | effective_mass_normal = 0.0f |
| float | Pn = 0 |
| float | Pt = 0 |
| float | Pbt = 0 |
| RigidBody * | body_a |
| RigidBody * | body_b |
| CollisionBody * | col_body_a |
| CollisionBody * | col_body_b |
| ContactType | type |
| vector< int > | id |
| int | warmStartNo = 0 |
Static Public Attributes | |
| static vector< Contact > | allContacts |
| static unsigned int | iterations |
A data structure to pass data received from a collision to the solver.
| Contact::Contact | ( | CollisionBody & | hullA, |
| CollisionBody & | hullB | ||
| ) |
Constructor, instantiated with the collision query between two CollisionBody objects.
| int Contact::applyImpulse | ( | ) |
Impulse-solver function, applies both normal impulse and friction impulses.
| int Contact::preStep | ( | float | dt | ) |
Apply impulse from previous frame for better coherence.
|
static |
| float Contact::bias = 0 |
| vec3 Contact::bitangent = vec3(0,0,0) |
| RigidBody* Contact::body_a |
| RigidBody* Contact::body_b |
| CollisionBody* Contact::col_body_a |
| CollisionBody* Contact::col_body_b |
| vec3 Contact::collision_point |
| float Contact::effective_mass_bitangent = 0.0f |
| float Contact::effective_mass_normal = 0.0f |
| float Contact::effective_mass_tangent = 0.0f |
| vector<int> Contact::id |
|
static |
| vec3 Contact::normal = vec3(0,0,0) |
| float Contact::Pbt = 0 |
| float Contact::penetration = 0 |
| float Contact::Pn = 0 |
| float Contact::Pt = 0 |
| vec3 Contact::tangent = vec3(0,0,0) |
| ContactType Contact::type |
| int Contact::warmStartNo = 0 |
1.8.13