BodyTests ApplyLinearImpulse Method Delta Engine Documentation

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

public void ApplyLinearImpulse()
Examples

[Test, CloseAfterFirstFrame]
public void ApplyLinearImpulse()
{
    body.ApplyLinearImpulse(Vector2D.Zero);
    AdvanceTimeAndUpdateEntities(0.1f);
    Assert.AreNotEqual(Vector2D.Zero, body.Position);
}
See Also