PlayerShip SteerLeft Method Delta Engine Documentation

Namespace: Asteroids
Assembly: Asteroids (in Asteroids.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void SteerLeft(
	float amount = 1f
)
Remarks

Tests: Asteroids.Tests.PlayerShipTests
Examples

1 unit tests call Asteroids.PlayerShip.SteerLeft(System.Single)
[Test, CloseAfterFirstFrame]
public void TurnChangesAngleCorrectly()
{
    float originalAngle = playerShip.Rotation;
    playerShip.SteerLeft();
    Assert.Less(playerShip.Rotation, originalAngle);
    originalAngle = playerShip.Rotation;
    playerShip.SteerRight();
    Assert.Greater(playerShip.Rotation, originalAngle);
}
See Also