Ops.Physics.CastRay
Namespace: Ops.Physics
cast a ray and test intersection with physic bodies
summary (oneliner)
Use with the Ops.Exp.Gl.Physics.Body.Sphere2 op
doc
issues
youtube id
collections
Inputs
Exec (Trigger)
Trigger in
Screen X (Number)
Position of the ray on the X axis 0.0 is the center of the screen
Screen Y (Number)
Position of the ray on the Y axis 0.0 is the center of the screen
Screen Z (Number)
Position of the ray on the Z axis 0.0 is the center of the screen
Change Cursor (boolean /Number)
Outputs
Next (Trigger)
Trigger out
Has Hit (Number)
if the ray intersects/hits a physics body then 1 is output
Hit X (Number)
Intersection position in world space on the X axis
Hit Y (Number)
Intersection position in world space on the Y axis
Hit Z (Number)
Intersection position in world space on the Z axis
Hit Normal X (Number)
Hit Normal Y (Number)
Hit Normal Z (Number)
Result (Object)
aabb x (Number)
aabb y (Number)
aabb z (Number)
aabb x2 (Number)
aabb y2 (Number)
aabb z2 (Number)
to x (Number)
to y (Number)
to z (Number)
from x (Number)
from y (Number)
from z (Number)
Body x (Number)
Body y (Number)
Body z (Number)
Name (String)
Changelog
created op
2019-02-12 - pandur
Ops.Exp.Gl.Physics.CastRay renamed to Ops.Physics.CastRay
2020-07-30 - pandur
2019-02-12 - pandur
Ops.Exp.Gl.Physics.CastRay renamed to Ops.Physics.CastRay
2020-07-30 - pandur