GET_LINE_PLANE_INTERSECTION
Computes where a line intersects a plane, writing the interpolation factor to p12. Returns true if they intersect.
Signature
BOOL GET_LINE_PLANE_INTERSECTION(float p0, float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, float p11, float* p12); // 0xAB6A04CEC428258B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | p0 | float |
| 2 | p1 | float |
| 3 | p2 | float |
| 4 | p3 | float |
| 5 | p4 | float |
| 6 | p5 | float |
| 7 | p6 | float |
| 8 | p7 | float |
| 9 | p8 | float |
| 10 | p9 | float |
| 11 | p10 | float |
| 12 | p11 | float |
| 13 | p12 | float* (out pointer) |
Facts
| Name | GET_LINE_PLANE_INTERSECTION |
|---|---|
| Hash | 0xAB6A04CEC428258B |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, p12 = Citizen.InvokeNative(0xAB6A04CEC428258B, -- GET_LINE_PLANE_INTERSECTION
0.0, -- float p0
0.0, -- float p1
0.0, -- float p2
0.0, -- float p3
0.0, -- float p4
0.0, -- float p5
0.0, -- float p6
0.0, -- float p7
0.0, -- float p8
0.0, -- float p9
0.0, -- float p10
0.0, -- float p11
Citizen.PointerValueFloat(), -- float* p12
Citizen.ReturnResultAnyway()
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [result, p12] = Citizen.invokeNative("0xAB6A04CEC428258B", // GET_LINE_PLANE_INTERSECTION
0.0, // float p0
0.0, // float p1
0.0, // float p2
0.0, // float p3
0.0, // float p4
0.0, // float p5
0.0, // float p6
0.0, // float p7
0.0, // float p8
0.0, // float p9
0.0, // float p10
0.0, // float p11
Citizen.pointerValueFloat(), // float* p12
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var p12Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xAB6A04CEC428258B, // GET_LINE_PLANE_INTERSECTION
0.0f, // float p0
0.0f, // float p1
0.0f, // float p2
0.0f, // float p3
0.0f, // float p4
0.0f, // float p5
0.0f, // float p6
0.0f, // float p7
0.0f, // float p8
0.0f, // float p9
0.0f, // float p10
0.0f, // float p11
p12Arg // float* p12
);
float p12 = p12Arg.GetResult<float>();Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.