AmmoRaycast Op

AmmoRaycast

Cast a ray and detect colliding bodies


<p>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.</p> <p>Make sure to normalize your input screen coordinates - so they are scaled to 0-1 .</p>


Full Name
  • Ops.Extension.AmmoPhysics.AmmoRaycast
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by TeamTest Patches


INPUT PORTS


Update (Trigger)
Ray Coordinates index (Number:

<i>integer</i>

)
 Screen XY  Points 3d 
Screen X (Number)

<p>Normalize screencoordinates on X Axis (0-1)</p>

Screen Y (Number)

<p>Normalize screencoordinates on Y Axis (0-1)</p>

Ray Points (Array)
Active (Number:

<i>boolean</i>

)

Change Cursor (Number:

<i>boolean</i>

)

OUTPUT PORTS


next (Trigger)
Has Hit (

<i>boolean</i>

Number)

<p>Boolean value reporting if there is an object at coordinates</p>

Hit Body Name (String)

<p>report name of object at coordinates</p>

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

Patches using AmmoRaycast

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2022-03-13 09:29
Ops.User.pandur.AmmoRaycast renamed to Ops.Dev.AmmoRaycastuser avatarpandur - 2022-03-13 13:18
Ops.Dev.AmmoRaycast renamed to Ops.Physics.Ammo.AmmoRaycastuser avatarpandur - 2022-05-09 11:51
renameOps.Physics.Ammo.AmmoRaycast renamed to Ops.Extension.AmmoPhysics.AmmoRaycastuser avatarpandur - 2023-09-14 09:38