Urho.Urho2D.PhysicsWorld2D Class

2D physics simulation world component. Should be added only to the root scene node.

See Also: PhysicsWorld2D


public class PhysicsWorld2D : Component


Namespace: Urho.Urho2D
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.Urho2D.PhysicsWorld2D are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.Urho2D.PhysicsWorld2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.PhysicsWorld2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.PhysicsWorld2D linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

AllowSleepingBoolean. Return allow sleeping. Or Set allow sleeping.
ApplyingTransformsBoolean. Controls whether node dirtying should be disregarded..
AutoClearForcesBoolean. Return auto clear forces. Or Set auto clear forces.
ContinuousPhysicsBoolean. Return continuous physics. Or Set continuous physics.
DrawAabbBoolean. Return draw aabb. Or Set draw aabb.
DrawCenterOfMassBoolean. Return draw center of mass. Or Set draw center of mass.
DrawJointBoolean. Return draw joint. Or Set draw joint.
DrawPairBoolean. Return draw pair. Or Set draw pair.
DrawShapeBoolean. Return draw shape. Or Set draw shape.
GravityVector2. Return gravity. Or Set gravity.
PositionIterationsInt32. Return position iterations. Or Set position iterations.
SubSteppingBoolean. Return sub stepping. Or Set sub stepping.
TypeStringHash. Urho's type system type.
TypeNameString. Urho's low-level type name.
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
UpdateEnabledBoolean. Return whether physics world will automatically simulate during scene update. Or Enable or disable automatic physics simulation during scene update. Enabled by default.
VelocityIterationsInt32. Return velocity iterations. Or Set velocity iterations.
WarmStartingBoolean. Return warm starting. Or Set warm starting.

Public Methods

Add rigid body.
Add debug geometry to the debug renderer.
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
GetRigidBody(Vector2, UInt32) : RigidBody2D
Return rigid body at point.
GetRigidBody(Int32, Int32, UInt32) : RigidBody2D
Return rigid body at screen point.
Register object factory.
Remove rigid body.
SubscribeToPhysicsBeginContact2D(Action<PhysicsBeginContact2DEventArgs>) : Subscription
Subscribes to the PhysicsBeginContact2D event raised by the PhysicsWorld2D.
SubscribeToPhysicsEndContact2D(Action<PhysicsEndContact2DEventArgs>) : Subscription
Subscribes to the PhysicsEndContact2D event raised by the PhysicsWorld2D.
Step the simulation forward.

Public Events

PhysicsBeginContact2DEvent raised for RigidBody2D of type dynamic on contact.
PhysicsEndContact2DEvent raised for RigidBody2D of type dynamic on contact end.