RHS Feedback - USAF
View Issue Details
0000162USAF[All Projects] Generalpublic2015-01-17 18:182015-05-15 08:25
SilentSpike 
MistyRonin 
lowminoralways
closedno change required 
0.3.5.1 
0.3.8 
No
1.40
No
0000162: M998's bounding box is too tall
It seems that the M998's bounding box doesn't fit the model. I've attached an image to visualize the problem.

Identical code was used to attach the bench to all three objects and you can see that the M998's bench is floating above where the actual model is, whereas the others are correctly placed on top. My code (in the steps below) is using the bounding box of the objects to correctly attach the benches.

I'm not experienced with bounding boxes, but I suspect they're derived from the actual mesh of an object which could mean that there's a stray polygon or vertex floating above the vehicle mesh.
1. Place down an M998 in the editor
2. Load in and look at the M998
3. Run the code below from the developer console (pause menu)

Code:
_vehicle = cursorTarget;
_extension = createVehicle ["Land_Pod_Heli_Transport_04_bench_F",[0,0,50],[],0,"CAN_COLLIDE"];
_dimensions = boundingBoxReal _vehicle;
_offset = [0,0,((_dimensions select 1) select 2) + ((boundingCenter _extension) select 2)];
_extension attachTo [_vehicle,_offset];
Only tested with the 4 door woodland variant - may also affect the others.
No tags attached.
jpg arma3 2015-01-17 16-43-01-961.jpg (440,078) 2015-01-17 18:18
https://feedback.rhsmods.org/file_download.php?file_id=39&type=bug
Issue History
2015-01-17 18:18SilentSpikeNew Issue
2015-01-17 18:18SilentSpikeFile Added: arma3 2015-01-17 16-43-01-961.jpg
2015-01-21 12:21MistyRoninStatusnew => acknowledged
2015-01-21 12:21MistyRoninProduct Version => 0.3.5.1
2015-01-21 12:21MistyRoninTarget Version => 0.3.5
2015-02-27 22:34Soul_AssassinTarget Version0.3.5 => 0.3.7
2015-03-01 04:10MistyRoninAssigned To => MistyRonin
2015-03-01 04:10MistyRoninStatusacknowledged => new
2015-04-18 15:11Soul_AssassinIs it a wish/request? => No
2015-04-18 15:11Soul_AssassinArma 3 version => 1.40
2015-04-18 15:11Soul_AssassinDid you used any other mod when the error occurred? => No
2015-04-18 15:11Soul_AssassinTarget Version0.3.7 => 0.3.8
2015-05-15 08:25Soul_AssassinNote Added: 0001412
2015-05-15 08:25Soul_AssassinStatusnew => closed
2015-05-15 08:25Soul_AssassinResolutionopen => no change required

Notes
(0001412)
Soul_Assassin   
2015-05-15 08:25   
This is fine. There are antennas there that are just hidden in that perticular instance, but are there in the p3d. The bounding box is fine.