Find an angle between 2 vector 3's and then shoot a raycast using that angle

i put ray but its suppost to say isPartHere which is the error, but now always get isnt exept some random times

yes but i need to detect if the block infront is taken and if it is place it 1 block infront

I solved it after a while, I though with a raycast:() – you can put 2 positons and it calculates the angle of the raycast for you. but its just a start position and a direction

image
what i did was i found the block ontop of where its suppost to be and raycasted down and when i wanted to build 1 block forward i offsetted the position of where the raycast starts. the black arrow is start position red arrow is the direction down i hope this helps people in the future xD

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.