LookAtCameraTests LookAtEntity3D Method Delta Engine Documentation

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

public void LookAtEntity3D()
Examples

[Test, CloseAfterFirstFrame]
public void LookAtEntity3D()
{
    var entity = new Entity3D(Vector3D.One * 5.0f, Quaternion.Identity);
    var camera = CreateLookAtCamera(Vector3D.Zero, entity);
    Assert.AreEqual(camera.Target, entity.Position);
}
See Also