Raycasting::testVisualDrawablePointToPoint: Difference between revisions

From RAGE Multiplayer Wiki
(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===
*[[Raycasting::testVisualDrawablePointToPoint|mp.raycasting.testVisualDrawablePointToPoint]]
{{Raycast_functions_c}}
*[[Raycasting::testPointToPoint|mp.raycasting.testPointToPoint]]
*[[Raycasting::testPointToPoint|mp.raycasting.testPointToPointAsync]]
*[[Raycasting::testCapsule|mp.raycasting.testCapsule]]

Latest revision as of 17:42, 16 March 2025

Client-Side
Function

 JavaScript



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


See Also