Click or drag to resize
PhysicsWorld Class
The physical world.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.PhysicsPhysicsWorld

Namespace:  GeonBit.Core.Physics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class PhysicsWorld

The PhysicsWorld type exposes the following members.

Constructors
  NameDescription
Public methodPhysicsWorld
Init the physics world.
Top
Methods
  NameDescription
Public methodAddBody
Add a physical body to the world
Public methodDebugDraw
Debug-draw the physical world.
Public methodDestroy
Destroy the physical world.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInitialize
Initialize physical-engine related stuff and set callbacks to respond to contact start / ended / processed events.
Public methodRaycast(Vector3, Vector3, BasePhysicsComponent)
Perform a raycast test and return colliding results, while ignoring 'self' object.
Public methodRaycast(Vector3, Vector3, Boolean)
Perform a raycast test and return colliding results.
Public methodRemoveBody
Remove a physical body from the world.
Public methodSetGravity
Set gravity vector.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Called every frame to advance physics simulator.
Top
Fields
  NameDescription
Public fieldStatic memberFixedTimeStep
Physics fixed timestep interval.
Public fieldStatic memberMaxSubStep
Physics max sub steps per frame.
Public fieldStatic memberTimeFactor
Physics time factor.
Top
See Also