PhysicsRayCast

From Multi Theft Auto: Wiki
Revision as of 13:05, 9 February 2020 by CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Perform ray cast between two positions. ==Syntax== <syntaxhighlight lang="lua"> raycast-result physicsRayCast(physics thePhysics, raycast-type...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Perform ray cast between two positions.

Syntax

raycast-result physicsRayCast(physics thePhysics, raycast-type theType, float startX, float startY, float startZ, float endX, float endY, float endZ, bool filterBackfaces = false )

Required Arguments

  • physics: The physics world.
  • raycast-type: Type of raycasting, see Physics raycast type
  • startXYZ: Start position.
  • endXYZ: End position.
  • filterBackfaces : Detect hit of backfaces. TODO, tests needed

Returns

Example


See Also