Namespace: Asteroids
Assembly: Asteroids (in Asteroids.exe) Version: 1.1.1.0 (1.1.1)
Tests: Asteroids.Tests.PlayerShipTests
1 unit tests call Asteroids.PlayerShip.ShipAccelerate(System.Single)
Assembly: Asteroids (in Asteroids.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- amount (Optional)
- Type: System Single
Remarks
Examples
[Test, CloseAfterFirstFrame] public void Accelerate() { Vector2D originalVelocity = playerShip.Get<Velocity2D>().Velocity; playerShip.ShipAccelerate(); Assert.AreNotEqual(originalVelocity, playerShip.Get<Velocity2D>().Velocity); }
See Also