Urho.Urho2D.ConstraintPulley2D Class

2D pulley constraint component.

See Also: ConstraintPulley2D

Syntax

public class ConstraintPulley2D : Constraint2D

Remarks

The pulley connects two bodies to ground ConstraintPulley2D.OwnerBodyGroundAnchor and ConstraintPulley2D.OtherBodyGroundAnchor and to each other ConstraintPulley2D.OwnerBodyAnchor and ConstraintPulley2D.OtherBodyAnchor

As one body goes up, the other goes down. You can supply a ratio ConstraintPulley2D.Ratio that simulates a block and tackle. This causes one side of the pulley to extend faster than the other. At the same time the constraint force is smaller on one side than the other. 

You can use this to create mechanical leverage.

Requirements

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

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

See Also: Constraint2D

Public Constructors

Constructs a new instance of Urho.Urho2D.ConstraintPulley2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.ConstraintPulley2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.ConstraintPulley2D 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

OtherBodyAnchorVector2. Return other body anchor. Or Set other body anchor point.
OtherBodyGroundAnchorVector2. return other body ground anchor. Or Set other body ground anchor point.
OwnerBodyAnchorVector2. Return owner body anchor. Or Set owner body anchor point.
OwnerBodyGroundAnchorVector2. Return owner body ground anchor. Or Set other body ground anchor point.
RatioSingle. Return ratio. Or Set ratio.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

static
RegisterObject(Context)
Register object factory.