Raycasting::testVisualDrawablePointToPoint: Difference between revisions
(Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''rayStart:''' {{RageType|Vector3}} — The starting position of the raycast. *'''rayEnd:''' {{RageType|Vector3}} — The ending position of the raycast. *'''flags:''' {{RageType|number}} (optional, default: -1) — Flags that determine the behavior of the raycast. ===Return value=== *'''{{RageType|Object}}''' — Returns an object containing information about the hit result. ==Syntax== <syntaxhighlight l...") |
|||
| Line 21: | Line 21: | ||
}} | }} | ||
===See Also=== | ===See Also=== | ||
{{Raycast_functions_c}} | |||
Latest revision as of 17:42, 16 March 2025
Client-Side Function
JavaScript Syntax
Required Params
- rayStart: Vector3 — The starting position of the raycast.
- rayEnd: Vector3 — The ending position of the raycast.
- flags: number (optional, default: -1) — Flags that determine the behavior of the raycast.
Return value
- 'Object' — Returns an object containing information about the hit result.
Syntax
mp.raycasting.testVisualDrawablePointToPoint(rayStart, rayEnd, flags = -1)
Example
// todo