PhysicsWorld Class |
Namespace: GeonBit.Core.Physics
public class PhysicsWorld
The PhysicsWorld type exposes the following members.
Name | Description | |
---|---|---|
PhysicsWorld |
Init the physics world.
|
Name | Description | |
---|---|---|
AddBody |
Add a physical body to the world
| |
DebugDraw |
Debug-draw the physical world.
| |
Destroy |
Destroy the physical world.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Initialize physical-engine related stuff and set callbacks to respond to contact start / ended / processed events.
| |
Raycast(Vector3, Vector3, BasePhysicsComponent) |
Perform a raycast test and return colliding results, while ignoring 'self' object.
| |
Raycast(Vector3, Vector3, Boolean) |
Perform a raycast test and return colliding results.
| |
RemoveBody |
Remove a physical body from the world.
| |
SetGravity |
Set gravity vector.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Called every frame to advance physics simulator.
|
Name | Description | |
---|---|---|
FixedTimeStep |
Physics fixed timestep interval.
| |
MaxSubStep |
Physics max sub steps per frame.
| |
TimeFactor |
Physics time factor.
|