SimplePhysicsTests RenderFallingCircle Method Delta Engine Documentation

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

public void RenderFallingCircle()
Examples

[Test]
public void RenderFallingCircle()
{
    var ellipse = new Ellipse(Vector2D.Half, 0.1f, 0.1f, Color.Blue);
    ellipse.Add(new SimplePhysics.Data
    {
        Velocity = new Vector2D(0.1f, -0.1f),
        Gravity = new Vector2D(0.0f, 0.1f)
    });
    ellipse.Start<SimplePhysics.Move>();
}
[Test]
public void RenderFallingCircleUsingExtension()
{
    var ellipse = new Ellipse(Vector2D.Half, 0.1f, 0.1f, Color.Blue);
    ellipse.StartFalling(new Vector2D(0.1f, -0.1f), new Vector2D(0.0f, 0.1f));
}
See Also