|
TrueSync
|
Manages the 3D physics simulation. More...
Public Member Functions | |
| void | Init () |
| void | UpdateStep () |
| Goes one step further on the physics simulation. | |
| IWorld | GetWorld () |
| Instance of the current simulated world. | |
| void | AddBody (ICollider iCollider) |
| Add a new RigidBody to the world. More... | |
| void | RemoveBody (IBody iBody) |
| void | OnRemoveBody (System.Action< IBody > OnRemoveBody) |
| bool | Raycast (TSVector rayOrigin, TSVector rayDirection, RaycastCallback raycast, out IBody body, out TSVector normal, out FP fraction) |
| TSRaycastHit | Raycast (TSRay ray, FP maxDistance, RaycastCallback callback=null) |
| GameObject | GetGameObject (IBody rigidBody) |
| Get the GameObject related to a specific RigidBody. More... | |
| bool | IsCollisionEnabled (IBody rigidBody1, IBody rigidBody2) |
| Check if the collision between two RigidBodies is enabled. More... | |
| IWorldClone | GetWorldClone () |
Properties | |
| TSVector | Gravity [get, set] |
| Property access to simulated gravity. | |
| bool | SpeculativeContacts [get, set] |
| Property access to speculative contacts. | |
| FP | LockedTimeStep [get, set] |
Manages the 3D physics simulation.
Definition at line 10 of file PhysicsWorldManager.cs.
| void TrueSync.PhysicsWorldManager.AddBody | ( | ICollider | iCollider | ) |
Add a new RigidBody to the world.
| jRigidBody | Instance of a TSRigidBody. |
Definition at line 97 of file PhysicsWorldManager.cs.
| GameObject TrueSync.PhysicsWorldManager.GetGameObject | ( | IBody | rigidBody | ) |
Get the GameObject related to a specific RigidBody.
| rigidBody | Instance of a RigidBody |
Definition at line 244 of file PhysicsWorldManager.cs.
Check if the collision between two RigidBodies is enabled.
Definition at line 254 of file PhysicsWorldManager.cs.
1.8.11