BodyTests TestBodyRestitution 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 TestBodyRestitution()
Examples

[Test]
public void TestBodyRestitution()
{
    var body = physics.CreateRectangle(new Size(45.0f, 45.0f));
    body.Restitution = 0.5f;
    Assert.AreEqual(body.Restitution, 0.5f);
}
See Also