Skip to content

Commit

Permalink
Update fnc_getVolume.sqf (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wakbub authored and commy2 committed May 1, 2019
1 parent ab4f3a7 commit 4d1a847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/common/fnc_getVolume.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Function: CBA_fnc_getVolume
Description:
Return the volume of the bounding box of an object's model.
The bounding box is retrieved using boundingBoxReal instead of boundingBox for more precise measurements.
The bounding box is retrieved using boundingBoxReal instead of boundingBox
with visual clipping type for more precise measurements.
Parameters:
_object - Object to calculate the volume of <OBJECT>
Expand All @@ -24,6 +25,6 @@ SCRIPT(getVolume);

params [["_object", objNull, [objNull]]];

(boundingBoxReal _object) params ["_leftBackBottom", "_rightFrontTop"];
(0 boundingBoxReal _object) params ["_leftBackBottom", "_rightFrontTop"];
(_rightFrontTop vectorDiff _leftBackBottom) params ["_width", "_length", "_height"];
_width * _length * _height

0 comments on commit 4d1a847

Please sign in to comment.