BIN fnc getGridCollisions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|1.94|Game version= " to "|1.94|Game version= |gr1= Movement |GROUP1= ")
m (Text replacement - "↵↵{{Wiki|placeholder}} {{Feature|arma3contact}} ↵↵|s1= <!--" to " </pre> {{Wiki|placeholder}} {{Feature|arma3contact}} |s1= <!--")
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.94


|1.94|Game version=
|gr1= Movement


|gr1= Movement |GROUP1=
|descr= <pre>#define BUSH_WIDTH 2
 
____________________________________________________________________________________________
 
| <pre>#define BUSH_WIDTH 2
#define BUSH_HEIGHT 2
#define BUSH_HEIGHT 2
#define TREE_TRUNK_WIDTH 0.5
#define TREE_TRUNK_WIDTH 0.5
Line 30: Line 26:
private _bboxY = SIZE + _cellSizeYHalf;\
private _bboxY = SIZE + _cellSizeYHalf;\
private _bboxZ = SIZE + _cellSizeZHalf;
private _bboxZ = SIZE + _cellSizeZHalf;
</pre>


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>
{{Wiki|placeholder}} {{Feature|arma3contact}}  
{{Feature arma3contact}} |Description=
____________________________________________________________________________________________


| <!-- [] call [[BIN_fnc_getGridCollisions]]; --> |Syntax=
|s1= <!-- [] call [[BIN_fnc_getGridCollisions]] -->


|p1= |Parameter 1=
|p1=


| |Return value=
|r1=
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|x1= <!-- <sqf>[] call BIN_fnc_getGridCollisions;</sqf> -->
____________________________________________________________________________________________


| |See also=
|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Movement|{{uc:getGridCollisions}}]]
[[Category:Functions|{{uc:getGridCollisions}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getGridCollisions}}]]

Latest revision as of 16:24, 17 April 2024

Hover & click on the images for description

Description

Description:
#define BUSH_WIDTH		2
#define BUSH_HEIGHT		2
#define TREE_TRUNK_WIDTH	0.5
#define TREE_TRUNK_HEIGHT	4

#define GET_POS\
	private _pos = _x modelToWorld (boundingcenter _x vectormultiply -1);

#define GET_BBOX\
	private _bbox = boundingboxreal _x;\
	private _bboxX = abs ((_bbox select 0 select 0) - (_bbox select 1 select 0)) / 2 + _cellSizeXHalf*0;\
	private _bboxY = abs ((_bbox select 0 select 1) - (_bbox select 1 select 1)) / 2 + _cellSizeYHalf*0;\
	private _bboxZ = abs ((_bbox select 0 select 2) - (_bbox select 1 select 2)) / 2 + _cellSizeZHalf*0;

	//_bboxZ = (abs (_bbox select 0 select 2) + abs (_bbox select 1 select 2)) + _cellSizeZHalf*0;

#define GET_BBOX_FIXED(SIZE)\
	private _bboxX = SIZE + _cellSizeXHalf;\
	private _bboxY = SIZE + _cellSizeYHalf;\
	private _bboxZ = SIZE + _cellSizeZHalf;
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
enoch icon ca.png
This content is exclusive to the Arma 3 Contact Expansion.
Execution:
call
Groups:
Movement

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note