コード例 #1
0
            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;
            }
コード例 #2
0
            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;
            }