PlayerShip ShipAccelerate Method Delta Engine Documentation

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

public void ShipAccelerate(
	float amount = 1f
)
Remarks

Tests: Asteroids.Tests.PlayerShipTests
Examples

1 unit tests call Asteroids.PlayerShip.ShipAccelerate(System.Single)
[Test, CloseAfterFirstFrame]
public void Accelerate()
{
    Vector2D originalVelocity = playerShip.Get<Velocity2D>().Velocity;
    playerShip.ShipAccelerate();
    Assert.AreNotEqual(originalVelocity, playerShip.Get<Velocity2D>().Velocity);
}
See Also