The PhysicsSystem type exposes the following members.

Constructors

  NameDescription
Public methodPhysicsSystem
Initializes a new PhysicSystem and makes it the current one.

Methods

  NameDescription
Public methodAddBody
Adds the body to the Physic- and the CollisionSystem
Public methodAddConstraint
Adds a constraint to the simulation.
Public methodAddController
Add a controller to the simulation.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntegrate
Integrates the system forwards by dt - the caller is responsible for making sure that repeated calls to this use the same dt (if desired)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveBody
Removes the body from the Physic- and the CollisionSystem
Public methodRemoveConstraint
Removes a constraint form the simulation.
Public methodRemoveController
Removes a Controller from the simulation.
Public methodResetTime
ResetTime
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldislands
List of islands

Properties

  NameDescription
Public propertyAllowedPenetration
Gets or Sets allowedPenetration
Public propertyBodies
Returns a readonly collection of all Bodies registered. To add or remove Bodies use AddBody or RemoveBody.
Public propertyCollisions
Gets collisions List
Public propertyCollisionSystem
If there is to be any collision detection, this physics system needs to know how to collide objects. In the absence of a collision system, no collisions will occur (surprise surprise).
Public propertyCollisionTollerance
Gets or Sets collToll
Public propertyConstraints
Returns a readonly collection of all Constraints registered. To add or remove Constraints use AddConstraint or RemoveConstraint.
Public propertyControllers
Returns a readonly collection of all Controllers registered. To add or remove Controllers use AddController or RemoveController.
Public propertyStatic memberCurrentPhysicsSystem
Gets or Sets the current PhysicSystem.
Public propertyEnableFreezing
Sets freezingEnabled
Public propertyGravity
Gets or Sets gravity
Public propertyGravityMagnitude
Gets gravityMagnitude
Public propertyIsFreezingEnabled
Gets freezingEnabled
Public propertyIsShockStepEnabled
Gets or Sets doShockStep
Public propertyMainGravityAxis
Gets gravityAxis
Public propertyNullUpdate
If nullUpdate then all updates will use dt = 0 (for debugging/profiling)
Public propertyNumCollisionIterations
Number of iterations done in the collision step of the solver.
Public propertyNumContactIterations
Number of iterations done in the contact step of the solver.
Public propertyNumPenetrationRelaxtionTimesteps
Gets or Sets numPenetrationRelaxtionTimesteps
Public propertyOldTime
Gets the physics idea of the time we've left behind
Public propertySolverType
Gets or Sets solverType
Public propertyTargetTime
Get the physics idea of the time we're advancing towards.

See Also