natives.DO 2D RECTANGLES COLLIDE: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|side = client
|games = vc
|games = vc
|type = function
|type = function
|name = natives.DO_2D_RECTANGLES_COLLIDE
|name = natives.DO_2D_RECTANGLES_COLLIDE
|parameters = Vec2 position, Vec2 point2, Vec2 point3, Vec2 point4
|arg1 = Vec2 position Screen coordinates (x, y).
|parameter1 = Vec2 position Screen coordinates (x, y).
|arg2 = Vec2 point2 Second point coordinates (x, y).
|parameter2 = Vec2 point2 Second point coordinates (x, y).
|arg3 = Vec2 point3 Point3.
|parameter3 = Vec2 point3 Point3.
|arg4 = Vec2 point4 Point4.
|parameter4 = Vec2 point4 Point4.
|desc = performs 2d rectangles collide
|usage = performs 2d rectangles collide
|return1 = void
|return1 = void
|returnFail1 = void
}}
}}

Latest revision as of 18:44, 13 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.DO_2D_RECTANGLES_COLLIDE(Vec2 position, Vec2 point2, Vec2 point3, Vec2 point4)
The natives.DO_2D_RECTANGLES_COLLIDE function is used to performs 2d rectangles collide.

Parameters

1) Vec2 position Screen coordinates (x, y).
2) Vec2 point2 Second point coordinates (x, y).
3) Vec2 point3 Point3.
4) Vec2 point4 Point4.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.