beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
CastRay
Ops.Physics.CastRay
cast a ray and test intersection with physic bodies

summary (oneliner)

doc

issues

youtube id

collections

related ops

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)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
CastRay example interactive:


Credits


Changelog


created op
2019-02-12 - pandur

Ops.Exp.Gl.Physics.CastRay renamed to Ops.Physics.CastRay
2020-07-30 - pandur

Examples using CastRay

Public Patches using CastRay