Urho.Urho2D.ConstraintDistance2D Class

2D distance constraint component.

See Also: ConstraintDistance2D

Syntax

public class ConstraintDistance2D : Constraint2D

Remarks

The distance between two anchor points ConstraintDistance2D.OwnerBodyAnchor and ConstraintDistance2D.OtherBodyAnchor on two bodies is kept constant. 

The constraint can also be made soft, like a spring-damper connection. Softness is achieved by tuning frequency (ConstraintDistance2D.FrequencyHz is below half of the timestep) and damping ratio (ConstraintDistance2D.DampingRatio).

Requirements

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

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

See Also: Constraint2D

Public Constructors

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

DampingRatioSingle. Return damping ratio. Or Set damping ratio.
FrequencyHzSingle. Return frequency Hz. Or Set frequency Hz.
OtherBodyAnchorVector2. Return other body anchor. Or Set other body anchor.
OwnerBodyAnchorVector2. Return owner body anchor. Or Set owner body anchor.
[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.