ActorTests TestIfTwoActorsAreCollidingIn2D Method Delta Engine Documentation

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

public void TestIfTwoActorsAreCollidingIn2D()
Examples

[Test]
public void TestIfTwoActorsAreCollidingIn2D()
{
    var actor1 = new MockActor(Vector2D.One, 0.0f, Vector2D.One);
    var actor2 = new MockActor(Vector2D.Zero, 0.0f, Vector2D.One);
    Assert.IsTrue(actor1.IsColliding(actor2));
}
See Also