Hello, Im new here
I’m trying to set up a camera to rotate arround a room and hide/unhide walls to view the room.
So far the rotation works fine, and I tried to setup a raytracer to find the wall facing the camera and hide it, but I’m not sure what to plug into the x/y to get the result I want, also there is a wall that refuses to hide for some reason.
Nodes
Hi, the x/y inputs are screen-space (= mouse cursor) coordinates, it’s sadly not immediately clear from the node UI: https://github.com/armory3d/armory/wiki/reference_data#raycast-closest-object.
What you need instead is a Ray Cast On
node which works with 3d world-space coordinates. The RB
output (short for “rigid body”) gives you the first object that was hit by the ray, or null
if the ray did not hit an object: https://github.com/armory3d/armory/wiki/reference_motion#ray-cast-on.
2 Likes
Thank you for answering !
Maybe I 'll try with the raycaster, but I also found another way of doing it, that I guess is very specific to my case but does work 
1 Like