Loading [MathJax]/extensions/tex2jax.js
Jolt Physics
A multi core friendly Game Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PhysicsSettings.h File Reference

Go to the source code of this file.

Classes

struct  PhysicsSettings
 

Variables

JPH_NAMESPACE_BEGIN constexpr float cDefaultCollisionTolerance = 1.0e-4f
 If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit: meter) More...
 
constexpr float cDefaultPenetrationTolerance = 1.0e-4f
 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) More...
 
constexpr float cDefaultConvexRadius = 0.05f
 How much padding to add around objects. More...
 
constexpr int cMaxPhysicsJobs = 2048
 Maximum amount of jobs to allow. More...
 
constexpr int cMaxPhysicsBarriers = 8
 Maximum amount of barriers to allow. More...
 

Variable Documentation

◆ cDefaultCollisionTolerance

JPH_NAMESPACE_BEGIN constexpr float cDefaultCollisionTolerance = 1.0e-4f
constexpr

If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit: meter)

◆ cDefaultConvexRadius

constexpr float cDefaultConvexRadius = 0.05f
constexpr

How much padding to add around objects.

◆ cDefaultPenetrationTolerance

constexpr float cDefaultPenetrationTolerance = 1.0e-4f
constexpr

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)

Stop when there's less than 1% change

◆ cMaxPhysicsBarriers

constexpr int cMaxPhysicsBarriers = 8
constexpr

Maximum amount of barriers to allow.

◆ cMaxPhysicsJobs

constexpr int cMaxPhysicsJobs = 2048
constexpr

Maximum amount of jobs to allow.