JointTests TestLineJointMotorEnabled Method Delta Engine Documentation

Namespace: DeltaEngine.Physics2D.Farseer.Tests
Assembly: DeltaEngine.Physics2D.Farseer.Tests (in DeltaEngine.Physics2D.Farseer.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void TestLineJointMotorEnabled()
Examples

[Test]
public void TestLineJointMotorEnabled()
{
    var bodyA = physics.CreateCircle(3.0f);
    var bodyB = physics.CreateCircle(3.0f);
    var joint = physics.CreateLineJoint(bodyA, bodyB, Vector2D.Zero);
    Assert.AreEqual(joint.MotorEnabled, false);
    joint.MotorEnabled = true;
    Assert.AreEqual(joint.MotorEnabled, true);
}
See Also