Any DCS guru’s here (this is a deep one too) that can tell me what this entry in the mission lua file does/means?
[“offsets”] = {…}
My search-fu is tapped out. Barely one small blurb, without explanation.
Concerns linked objects (carrier deck here), ref’d in the mission lua under “units”:
With one caveat what I want to do works (so far) but I’m not sure why it does, based on these values and how they ‘behave’.
Hierarchy is as follows:
static.group[i].units[j]
[“offsets”] = {
x = meters[1]
y = meters[1]
angle = radian[2]}
[1] “X/Y”: These appear to be in what I’ll call “Model space” - relative to the unit this group is linked to (carrier again). AND they appear to be un-transformed values: a 2D vector (X/Z in world-space, though they call them X/Y in the file). Kinda makes sense…
[2]: “angle”: This one is a head-scratcher (it’s not the direction the unit is facing, that is under ["heading’] elsewhere).
Odd thing is, when skimming through these entries some appear to be radians, as expected (<= Pi * 2, where ‘up’ == 0, not the standard convention it seems, though positive rotation is CCW).
YET, some are strange numbers, like 27.x or something not <= Pi * 2.
I have a ‘template’ carrier, replete with tugs, personnel, static choppers, etc. And some conditional non-static aircraft.
When I ignore this sub-table (“offsets”) - AND my template is oriented on the X-axis (0-radians = ‘up’) it all works, no matter what trasnform I apply on my side, prior to writing it out to a fresh mission file (which is the goal).
But the values in this table change, when saved back out via the ME??? I would have thought DCS transforms these on the fly, of course.
I’m corn-fused (Pythagoras I’m not)