Urho.Urho2D.ConstraintMotor2D Class

2D motor constraint component.

See Also: ConstraintMotor2D


public class ConstraintMotor2D : Constraint2D


This constraint lets you control the motion of a body by specifying target position (ConstraintMotor2D.LinearOffset) and rotation offsets (ConstraintMotor2D.AngularOffset). 

You can set the maximum motor force (ConstraintMotor2D.MaxForce) and torque (ConstraintMotor2D.MaxTorque) that will be applied to reach the target position and rotation. If the body is blocked, it will stop and the contact forces will be proportional to the maximum motor force and torque.


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

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

See Also: Constraint2D

Public Constructors

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

AngularOffsetSingle. Return angular offset. Or Set angular offset.
CorrectionFactorSingle. Return correction factor. Or Set correction factor.
LinearOffsetVector2. Return linear offset. Or Set linear offset.
MaxForceSingle. Return max force. Or Set max force.
MaxTorqueSingle. Return max torque. Or Set max torque.
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.

Public Methods

Register object factory.