Actor Scale Property Delta Engine Documentation

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

Vector3D Scale { get; set; }

Property Value

Type: Vector3D
Remarks

Tests: DeltaEngine.GameLogic.Tests.ActorTests
Examples

2 unit tests call DeltaEngine.GameLogic.Actor.Scale
[Test]
public void CheckChangeScale()
{
    var actor = new MockActor(Vector3D.One, 1.0f);
    actor.ScaleChanged += () => { CheckScaleHasChanged(actor); };
    actor.Scale = new Vector3D(2, 2, 2);
}
[Test]
public void CheckChangeScaleFactor()
{
    var actor = new MockActor(Vector3D.One, 1.0f);
    actor.ScaleFactor = 2;
    Assert.AreEqual(2, actor.ScaleFactor);
}
See Also