Jolt Physics
A multi core friendly Game Physics Engine
|
Settings to be passed with a collision query. More...
#include <CollideShape.h>
Public Attributes | |
JPH_OVERRIDE_NEW_DELETE EActiveEdgeMode | mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive |
How active edges (edges that a moving object should bump into) are handled. | |
ECollectFacesMode | mCollectFacesMode = ECollectFacesMode::NoFaces |
If colliding faces should be collected or only the collision point. | |
float | mCollisionTolerance = cDefaultCollisionTolerance |
If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit: meter) | |
float | mPenetrationTolerance = cDefaultPenetrationTolerance |
A factor that determines the accuracy of the penetration depth calculation. If the change of the squared distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit: dimensionless) | |
Vec3 | mActiveEdgeMovementDirection = Vec3::sZero() |
When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an inactive edge, the system will select the triangle normal as penetration depth only if it impedes the movement less than with the calculated penetration depth. | |
Settings to be passed with a collision query.
JPH_OVERRIDE_NEW_DELETE EActiveEdgeMode CollideSettingsBase::mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive |
How active edges (edges that a moving object should bump into) are handled.
Vec3 CollideSettingsBase::mActiveEdgeMovementDirection = Vec3::sZero() |
When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an inactive edge, the system will select the triangle normal as penetration depth only if it impedes the movement less than with the calculated penetration depth.
ECollectFacesMode CollideSettingsBase::mCollectFacesMode = ECollectFacesMode::NoFaces |
If colliding faces should be collected or only the collision point.
float CollideSettingsBase::mCollisionTolerance = cDefaultCollisionTolerance |
If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit: meter)
float CollideSettingsBase::mPenetrationTolerance = cDefaultPenetrationTolerance |
A factor that determines the accuracy of the penetration depth calculation. If the change of the squared distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit: dimensionless)