16 public static IPhysicsManager
instance;
26 instance.Gravity = trueSyncConfig.
gravity3D;
40 internal static void InitTest3D() {
42 instance.Gravity =
new TSVector(0, -10, 0);
43 instance.LockedTimeStep = 0.02f;
50 internal static void InitTest2D() {
52 instance.Gravity =
new TSVector(0, -10, 0);
53 instance.LockedTimeStep = 0.02f;
TSVector2 gravity2D
Represents the simulated gravity.
PhysicsType
Indicates the type of physics simulations: 2D or 3D.
bool speculativeContacts2D
If true enables a deeper collision detection system.
static IPhysicsManager instance
Returns a proper implementation of IPhysicsManager.
bool physics3DEnabled
Indicates if the 3D physics engine should be enabled.
Manages the 3D physics simulation.
TSVector gravity3D
Represents the simulated gravity.
static IPhysicsManager New(TrueSyncConfig trueSyncConfig)
Instantiates a new IPhysicsManager.
Represents a set of configurations for TrueSync.
bool speculativeContacts3D
If true enables a deeper collision detection system.
Manages the 2D physics simulation.
Manages physics simulation.
bool physics2DEnabled
Indicates if the 2D physics engine should be enabled.