BIN fnc getGridCollisions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.94|= Game version" to "{{Function|Comments= ______________________________________________...)
m (Text replacement - "{{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}}" to "{{Feature arma3contact}}")
(4 intermediate revisions by the same user not shown)
Line 28: Line 28:
private _bboxZ = SIZE + _cellSizeZHalf;
private _bboxZ = SIZE + _cellSizeZHalf;


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


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


|p1= |= Parameter 1
|p1= |Parameter 1=


| |= Return value
| |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code></code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |See also=
 
}}
}}



Revision as of 13:27, 6 December 2019

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) Template:Feature arma3contact
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

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

Notes

Bottom Section