See Also: Constraint2D
Base class for the various 2D physics constraints.
Constraints ('joints' in Box2D terminology) are used to constrain bodies to an anchor point or between themselves. Apply a constraint to a node, called the Constraint2D.OwnerBody and use Constraint2D.OtherBody to set the other node's body to be constrained to the owner body.
See 32_Urho2DConstraints sample for detailed examples and to help selecting the appropriate constraint.
Following are the available constraints classes, with the indication of the corresponding 'joint' in Box2D manual (see Chapter 8 Joints):
Assembly: Urho (in Urho.dll)
Assembly Versions: 126.96.36.199
The members of Urho.Urho2D.Constraint2D are listed below.
See Also: Component
|Constructs a new instance of Urho.Urho2D.Constraint2D which is tied to the Application.CurrentContext.|
|Constructs a new instance of Urho.Urho2D.Constraint2D, given a raw pointer to an unmanaged object|
|Constructs a new instance of Urho.Urho2D.Constraint2D linked to a specific Context.|
|AttachedConstraint||Constraint2D. Return attached constraint (for gear). Or Set attached constriant (for gear).|
|CollideConnected||Boolean. Return collide connected. Or Set collide connected.|
|OtherBody||RigidBody2D. Return other body. Or Set other rigid body.|
|[read-only]||OwnerBody||RigidBody2D. Return owner body.|
|Type||StringHash. Urho's type system type.|
|TypeName||String. Urho's low-level type name.|
|TypeNameStatic||String. Urho's low-level type name, accessible as a static method.|
|TypeStatic||StringHash. Urho's low-level type, accessible as a static method.|