|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Set of points on the contact surface between two potentially colliding objects. More...
#include <GREM/physics/collision.hpp>
Public Types | |
| using | PointMask = BitArray<MAX_POINT_COUNT> |
| Bitset of point indices in a manifold. | |
Public Attributes | |
| Pair< ContactFeatureType > | featureTypes |
| Ordered pair of feature types in contact on the objects. | |
| Pair< uint32_t > | featureIndices |
| Ordered pair of feature indices in contact on the objects, or an unspecified value if there is no specific index given the corresponding feature type. | |
| InplaceArrayList< ContactPoint< N >, MAX_POINT_COUNT > | points |
| Set of active contact points. | |
| Direction< N > | normal |
| Unit vector perpendicular to the separating plane of the collision, pointing away from the surface of the first object and towards the surface of the second object, in world space. | |
| AngularMomentum< N > | rollingResistanceMomentum {} |
| Total rolling resistance momentum of this contact manifold in world space. | |
| AngularImpulse< N > | rollingResistanceImpulse {} |
| Total rolling resistance impulse applied to this contact manifold in world space in the last simulation step. | |
| CollisionFilterTestResult | filterTestResult |
| Result of the collision filter test that generated the manifold. | |
Static Public Attributes | |
| static constexpr size_t | MAX_POINT_COUNT = (N == 3) ? 4 : 2 |
| Maximum number of contact points in a single manifold. | |
Set of points on the contact surface between two potentially colliding objects.
| N | number of dimensions of the world space (must be 2 or 3). |
| using grem::physics::ContactManifold< N >::PointMask = BitArray<MAX_POINT_COUNT> |
Bitset of point indices in a manifold.
|
staticconstexpr |
Maximum number of contact points in a single manifold.
| Pair<ContactFeatureType> grem::physics::ContactManifold< N >::featureTypes |
Ordered pair of feature types in contact on the objects.
| Pair<uint32_t> grem::physics::ContactManifold< N >::featureIndices |
Ordered pair of feature indices in contact on the objects, or an unspecified value if there is no specific index given the corresponding feature type.
| InplaceArrayList<ContactPoint<N>, MAX_POINT_COUNT> grem::physics::ContactManifold< N >::points |
Set of active contact points.
| Direction<N> grem::physics::ContactManifold< N >::normal |
Unit vector perpendicular to the separating plane of the collision, pointing away from the surface of the first object and towards the surface of the second object, in world space.
| AngularMomentum<N> grem::physics::ContactManifold< N >::rollingResistanceMomentum {} |
Total rolling resistance momentum of this contact manifold in world space.
| AngularImpulse<N> grem::physics::ContactManifold< N >::rollingResistanceImpulse {} |
Total rolling resistance impulse applied to this contact manifold in world space in the last simulation step.
| CollisionFilterTestResult grem::physics::ContactManifold< N >::filterTestResult |
Result of the collision filter test that generated the manifold.