Add OrientedBoundingBox to Sandbox.ModAPI.Ingame.MyDetectedEntityInfo
At present, the MyDetectedEntityInfo structure returns only a world-aligned bounding box from which it is impossible to infer the detected entity's oriented bounding box.
It is possible to take the world-aligned bounding box and orient it such that it is aligned with the ship, but this is often much larger than the ship and thus not accurate.
(An example of the world-aligned bounding box being larger can be found here: https://cdn.discordapp.com/attachments/166886199200448512/32116345842744576/image.png and a diagrammatic version can be found here: http://i.imgur.com/QmrqgKU.png)
I suggest adding the oriented bounding box to make scripted collision avoidance systems more plausible, which would in turn facilitate better automated piloting and landing scripts, as well as potentially better scripted AI.
shared this idea 14/09/17 22:01