Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ContactSettings Class Reference

#include <ContactListener.h>

Public Attributes

float mCombinedFriction
 Combined friction for the body pair (usually calculated by sCombineFriction) More...
 
float mCombinedRestitution
 Combined restitution for the body pair (usually calculated by sCombineRestitution) More...
 
bool mIsSensor
 If the contact should be treated as a sensor vs body contact (no collision response) More...
 

Detailed Description

When a contact point is added or persisted, the callback gets a chance to override certain properties of the contact constraint. The values are filled in with their defaults by the system so the callback doesn't need to modify anything, but it can if it wants to.

Member Data Documentation

◆ mCombinedFriction

float ContactSettings::mCombinedFriction

Combined friction for the body pair (usually calculated by sCombineFriction)

◆ mCombinedRestitution

float ContactSettings::mCombinedRestitution

Combined restitution for the body pair (usually calculated by sCombineRestitution)

◆ mIsSensor

bool ContactSettings::mIsSensor

If the contact should be treated as a sensor vs body contact (no collision response)


The documentation for this class was generated from the following file: