Ok so I do not know how to cast a ray properly, everytime I do my program freezes. I need to do a check in front of my 3d player and also for walking in water and the water has no collison. I am lost.
But I also need to figure out how to detect if im walking on water also. I repeat this because the function here is just for picking up objects.
What freezes my program.