#3.6 3D Raycast using direct space - trying to bounce ray

2 messages · Page 1 of 1 (latest)

tropic cargo
#

Whats interesting is if I do this for reflection_direction: reflection_direction = to_global(cast_to).direction_to(global_transform.origin).bounce(normal), and I plug that into a raycast's cast_to that is NOT a child of the initial raycast, it comes up with what seems to be the correct reflection angle.

tropic cargo
#

I have also verified with this ^ that my cast_to for the child raycast is in fact the reflection_direction of the parent variable. I think having the raycast as a child of the initial ray is causing issues. THOUGHTS?