NcEngine
nc::config::PhysicsSettings Struct Reference

Options for configuring NcPhysics. More...

#include <Config.h>

Public Attributes

bool enabled = true
 enable the NcPhysics module
 
bool enableNetworkRollback = false
 initialize NcPhysics for network rollback mode (see NcPhysics documentation)
 
unsigned tempAllocatorSize = 64 * 1024 * 1024
 size of per-frame allocaor; needs to be large enough to account for maximums below (bytes)
 
unsigned maxBodyPairs = 50000
 max number of simultaneous body interactions
 
unsigned maxContacts = 30000
 max number of simultaneous contacts
 
unsigned velocitySteps = 10
 number of velocity solver iterations to use (>=2)
 
unsigned positionSteps = 2
 number of position solver iterations to use
 
float baumgarteStabilization = 0.2f
 factor for position error correction ([0, 1])
 
float speculativeContactDistance = 0.02f
 object radius for contact detection (meters)
 
float penetrationSlop = 0.02f
 distance objects are allowed to overlap (meters)
 
float timeBeforeSleep = 0.5f
 time until objects are allowed to sleep (seconds)
 
float sleepThreshold = 0.03f
 velocity below which objects are put to sleep (m/s)
 

Detailed Description

Options for configuring NcPhysics.


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