AmmoRaycast Op
Cast a ray and detect colliding bodies
Summary (oneliner)
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 .
- Ops.Extension.AmmoPhysics.AmmoRaycast
- Extension Op - Visible to all users
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Ammo Raycast
INPUT PORTS
Normalize screencoordinates on X Axis (0-1)
Normalize screencoordinates on Y Axis (0-1)
OUTPUT PORTS
Boolean value reporting if there is an object at coordinates
report name of object at coordinates
Patches using AmmoRaycast
Changelog
created op | pandur - 2022-03-13 09:29 | |
Ops.User.pandur.AmmoRaycast renamed to Ops.Dev.AmmoRaycast | pandur - 2022-03-13 13:18 | |
Ops.Dev.AmmoRaycast renamed to Ops.Physics.Ammo.AmmoRaycast | pandur - 2022-05-09 11:51 | |
rename | Ops.Physics.Ammo.AmmoRaycast renamed to Ops.Extension.AmmoPhysics.AmmoRaycast | pandur - 2023-09-14 09:38 |