Resolution#
-
enum nvResolutionState#
Collsion resolution states.
Values:
-
enumerator nvResolutionState_FIRST#
The collision just happened this frame.
-
enumerator nvResolutionState_NORMAL#
The collision has been existing.
-
enumerator nvResolutionState_CACHED#
The collision has been separated and the resolution is cached.
-
enumerator nvResolutionState_FIRST#
-
struct nvResolution#
Data structure that holds information about collision between two bodies.
Public Members
-
bool collision#
Flag that reports if the collision has happened.
-
nv_float depth#
Penetration depth.
-
nv_float friction#
Mixed friction coefficient.
-
nvResolutionState state#
State of the resolution.
-
int lifetime#
Remaining lifetime of the resolution in ticks.
-
nv_uint8 contact_count#
Contact point count.
-
bool collision#
-
struct nvContact#
Data structure that holds information about contacts of collision.
Public Members
-
nv_float velocity_bias#
Velocity bias for restitution.
-
nv_float position_bias#
Position bias for Baumgarte stabilization.
-
nv_float mass_normal#
Effective mass of normal impulse.
-
nv_float mass_tangent#
Effective mass of tangential impulse.
-
nv_float jn#
Accumulated normal impulse.
-
nv_float jt#
Accumulated tangential impulse.
-
nv_float velocity_bias#