BoxTests CreateYellowBoxInOtherPosition Method Delta Engine Documentation

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

public void CreateYellowBoxInOtherPosition()
Examples

[Test, CloseAfterFirstFrame]
public void CreateYellowBoxInOtherPosition()
{
    var box = new Box(Vector3D.One, Color.Yellow, new Vector3D(0.5f, 0.0f, 0.0f));
    var mesh = (BoxMesh)box.Get<ModelData>().Meshes[0];
    Assert.AreEqual(new Vector3D(0.5f, 0.0f, 0.0f), box.Position);
}
See Also