Class SimpleMotor
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
SimpleMotor keeps the relative angular velocity constant.
public class SimpleMotor : Constraint
- Inheritance
Constructors
View SourceSimpleMotor(Body, Body, double)
Rotate with a constant relative angular velocity constant between two bodies.
Declaration
public SimpleMotor(Body bodyA, Body bodyB, double rate)
Parameters
| Type | Name | Description |
|---|---|---|
| Body | bodyA | One of the two bodies. |
| Body | bodyB | One of the two bodies. |
| double | rate | The rate of rotation. |
Properties
View SourceRate
The rate of the motor.
Declaration
public double Rate { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceIsSimpleMotor(Constraint)
Check if constraint is a SimpleMotor.
Declaration
public static bool IsSimpleMotor(Constraint constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| Constraint | constraint |
Returns
| Type | Description |
|---|---|
| bool |