|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Collision start event between two objects in a Simulation. More...
#include <GREM/physics/collision.hpp>
Public Attributes | |
| Pair< EntityID > | objectIDs |
| Ordered pair of handles to the objects involved in the collision. | |
| Pair< Transformation< N > > | objectTransformations |
| Ordered pair of transformations of the objects in world space at the time of the collision. | |
| Pair< Length< N > > | localOffsets |
| Ordered pair of untransformed offsets from the objects' centers of mass to their respective surfaces where the collision occured in shape-local space. | |
| Pair< LinearVelocity< N > > | objectLinearVelocities |
| Ordered pair of linear velocities of the objects' centers of mass at the time of the collision. | |
| Pair< AngularVelocity< N > > | objectAngularVelocities |
| Ordered pair of angular velocities of the objects at the time of the collision. | |
| Direction< N > | normal |
| Unit vector perpendicular to the separating plane of the collision, pointing away from the first object's surface and towards the second object's surface. | |
Collision start event between two objects in a Simulation.
| N | number of dimensions of the world space (must be 2 or 3). |
| Pair<EntityID> grem::physics::CollisionEvent< N >::objectIDs |
Ordered pair of handles to the objects involved in the collision.
| Pair<Transformation<N> > grem::physics::CollisionEvent< N >::objectTransformations |
Ordered pair of transformations of the objects in world space at the time of the collision.
| Pair<Length<N> > grem::physics::CollisionEvent< N >::localOffsets |
Ordered pair of untransformed offsets from the objects' centers of mass to their respective surfaces where the collision occured in shape-local space.
| Pair<LinearVelocity<N> > grem::physics::CollisionEvent< N >::objectLinearVelocities |
Ordered pair of linear velocities of the objects' centers of mass at the time of the collision.
| Pair<AngularVelocity<N> > grem::physics::CollisionEvent< N >::objectAngularVelocities |
Ordered pair of angular velocities of the objects at the time of the collision.
| Direction<N> grem::physics::CollisionEvent< N >::normal |
Unit vector perpendicular to the separating plane of the collision, pointing away from the first object's surface and towards the second object's surface.