Actor Is2D Method Delta Engine Documentation

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

bool Is2D()

Return Value

Type: Boolean
Remarks

Tests: DeltaEngine.GameLogic.Tests.ActorTests
Examples

1 unit tests call DeltaEngine.GameLogic.Actor.Is2D
[Test]
public void TestActorSpawnDespawnNotChangeAnything()
{
    var actor = new MockActor(Vector3D.One, 1.0f);
    actor.RenderModel();
    Assert.IsFalse(actor.Is2D());
    Assert.AreEqual(Vector3D.One, actor.Position);
}
See Also