Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ContactListener.h File Reference

Go to the source code of this file.

Classes

class  ContactManifold
 Manifold class, describes the contact surface between two bodies. More...
 
class  ContactSettings
 
class  ContactListener
 

Typedefs

using ContactPoints = StaticArray< Vec3, 64 >
 Array of contact points. More...
 

Enumerations

enum class  ValidateResult { AcceptAllContactsForThisBodyPair , AcceptContact , RejectContact , RejectAllContactsForThisBodyPair }
 

Typedef Documentation

◆ ContactPoints

Array of contact points.

Enumeration Type Documentation

◆ ValidateResult

enum class ValidateResult
strong

Return value for the OnContactValidate callback. Determines if the contact is being processed or not. Results are ordered so that the strongest accept has the lowest number and the strongest reject the highest number (which allows for easy combining of results)

Enumerator
AcceptAllContactsForThisBodyPair 

Accept this and any further contact points for this body pair.

AcceptContact 

Accept this contact only (and continue calling this callback for every contact manifold for the same body pair)

RejectContact 

Reject this contact only (but process any other contact manifolds for the same body pair)

RejectAllContactsForThisBodyPair 

Rejects this and any further contact points for this body pair.