#How do I make an end of raycast node?

7 messages · Page 1 of 1 (latest)

south lance
#

I coded in a raycast and I want there to be a node at the end of the raycast.
For example Lets say that my raycast is 10 meters long, if it doesn't detect something in the raycast, it will reach the end_of_raycast node, and it'll detect that instead.

I want to do this, so that I can get the node's Slerp values, and make objects look at said node

#

NothingInPath is the node I want to be at the end of the raycast

deft hinge
#

Hello 😊 !
Why do you do it step by step and not really long ?
Do you want it recursive or do you just move it one time ?

south lance
#

I want it to be recursive. NothingInPath node, is used so I can rotate objects to that node, just incase the raycasts detects nothing

#

I want to be able to select a lot of nodes, and make them look in one direction, and move in that direction

jovial grove
#

Your end_of_ray calculation seems to be off. You probably meant to add the camera_origin to that, since the end point is equal to the origin point plus the path it takes

#

So in other words, the second argument of create should be what your commented-out variable hit_point is