IntersectTestRaycast Op

IntersectTestRaycast

Cast a ray and check if it intersect/collide with bodies



Full Name
  • Ops.Graphics.Intersection.IntersectTestRaycast
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubPatchlistTest Patches


Example Patch Intersections Example

Open In Editor

Youtube Video Tutorial

INPUT PORTS


Trigger (Trigger)
Coordinate Format index (Number: integer) -1 to 1  XYZ-XYZ 
X (Number)
Y (Number)
Z (Number)
To X (Number)
To Y (Number)
To Z (Number)
Active (Number: boolean)
Change Cursor (Number: boolean)

OUTPUT PORTS


Next (Trigger)
Has Hit (booleanNumber)
Hit Body Name (String)
Hit X (Number)
Hit Y (Number)
Hit Z (Number)

Patches using IntersectTestRaycast

  • Intersect Ops Examples (3)
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2023-06-11 16:23
renameOps.Patch.PU3A3qy.CollisionRayCast renamed to Ops.Team.CollisionOps.CollisionRayCastuser avatarpandur - 2023-06-11 16:59
renameOps.Team.CollisionOps.CollisionRayCast renamed to Ops.Graphics.Intersection.IntersectRaycastuser avatarpandur - 2023-06-19 11:18
featureswitchable to XYZ-XYZ coordinate mode: 3d rays, not only from screencoordinatesuser avatarpandur - 2024-01-15 18:40
featureWill now pick the clostst body to the camera, not the very first one founduser avatarpandur - 2024-02-15 17:22