how can i make a raycasting that detects walls when i’m using bodyforce so it can stop and i dont get fling here is my bodyforce im using it in an animation event:
Create a ray that uses raycastparams which ensures that it only Includes walls in array to detect.Then if the ray operation has a result then remove the bodyforce otherwise do nothing about the body force.