cables is under heavy development.
There might be one or another bug, please let us know about it!

AmmoRaycast Op

 extension op - visible to all users


Op author: pandur
Maintained by Team: Ammo Physics

Test Patches: 1 Test

Cast a ray and detect colliding bodies

This operator will report if there is a physics object at the specific location and will also output the name of the object from the string output port. With something like a Mouse Op you can use this for navigation or user interaction. Of course you are not limited to using mouse coordinates, but can get creative and use any other input method.

Make sure to normalize your input screen coordinates - so they are scaled to 0-1 .


Update (Trigger)
Ray Coordinates index (integer /Number)
Screen X (Number)

Normalize screencoordinates on X Axis (0-1)

Screen Y (Number)

Normalize screencoordinates on Y Axis (0-1)

Ray Points (Array)
Active (boolean /Number)
Change Cursor (boolean /Number)


next (Trigger)
Has Hit (boolean Number)

Boolean value reporting if there is an object at coordinates

Hit Body Name (String)

report name of object at coordinates

Hit X (Number)
Hit Y (Number)
Hit Z (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Patches using AmmoRaycast

  • Examples (2)
  • Public
  • My Patches


created op
2022-03-13 - pandur
Ops.User.pandur.AmmoRaycast renamed to Ops.Dev.AmmoRaycast
2022-03-13 - pandur
Ops.Dev.AmmoRaycast renamed to Ops.Physics.Ammo.AmmoRaycast
2022-05-09 - pandur
renameOps.Physics.Ammo.AmmoRaycast renamed to Ops.Extension.AmmoPhysics.AmmoRaycast
2023-09-14 - pandur