This commit is contained in:
FlightControl
2019-06-18 20:03:24 +03:00
parent 1e0e67c13d
commit 1d4dad0180
2 changed files with 19 additions and 15 deletions

View File

@@ -1142,7 +1142,8 @@ function AI_FORMATION:onenterFollowing( FollowGroupSet ) --R2.1
-- Now we calculate the intersecting vector between the circle around CV2 with radius FollowDistance and GH2.
-- From the GeoGebra model: CVI = (x(CV2) + FollowDistance cos(alpha), y(GH2) + FollowDistance sin(alpha), z(CV2))
local CVI = { x = CV2.x + CS * 10 * math.sin(Ca),
y = GH2.y + ( Distance + FollowFormation.x ) / 10, -- + FollowFormation.y,
--y = GH2.y + ( Distance + FollowFormation.x ) / 10, -- + FollowFormation.y,
y = GH2.y,
z = CV2.z + CS * 10 * math.cos(Ca),
}