public void TargetPosition(Vector3D position, Vector3D planetCenter, double planetRadius, double gravity = 9.81) { Vector3D startPos = reference.GetPosition(); Vector3D direction = Vector3D.Normalize(position - startPos); simTargeting = new Simulated_Targeting(reference, position, startPos, direction, 0, planetCenter, planetRadius, gravity, launchVelocity, speedCap); simTargeting.tolerance = tolerance; simTargeting.negationFactor = 0.001; fireCallbackOnce = false; }
public void TargetPosition(Vector3D position, MyDetectedEntityInfo planet) { Vector3D startPos = reference.GetPosition(); Vector3D direction = Vector3D.Normalize(position - startPos); simTargeting = new Simulated_Targeting(reference, position, startPos, direction, 0, planet, 9.81, launchVelocity, speedCap); simTargeting.tolerance = tolerance; simTargeting.negationFactor = 0.001; fireCallbackOnce = false; }