public void CalculateBulletVelocity() { float force = 1000f; float answerVelocity = 20.0f; Autoaim testAuto = new Autoaim(); testAuto.SetBulletForce(force); testAuto.CalculateBulletVelocity(); Assert.True(testAuto.bulletVelocity_ == answerVelocity); }
public void CalculatePositionToShoot() { Autoaim testAuto = new Autoaim(); Vector3 targetPosition1 = new Vector3(0f, 0f, 0f); Vector3 targetPosition2 = new Vector3(2f, 2f, 0f); Vector3 turretPosition = new Vector3(3f, 3f, 0f); testAuto.SetPositions(targetPosition1, targetPosition2); testAuto.SetTurretPosition(turretPosition); testAuto.SetBulletForce(1000.0f); }
public void CalculateBulletVelocity() { float force = 1000f; float answerVelocity = 20.0f; Autoaim testAuto = new Autoaim(); testAuto.SetBulletForce(force); testAuto.CalculateBulletVelocity(); Assert.True(testAuto.bulletVelocity_ == answerVelocity); }
public void CalculatePositionToShoot() { Autoaim testAuto = new Autoaim(); Vector3 targetPosition1 = new Vector3(0f, 0f, 0f); Vector3 targetPosition2 = new Vector3(2f, 2f, 0f); Vector3 turretPosition = new Vector3(3f, 3f, 0f); testAuto.SetPositions(targetPosition1, targetPosition2); testAuto.SetTurretPosition(turretPosition); testAuto.SetBulletForce(1000.0f); }