#Dashing through walls
1 messages · Page 1 of 1 (latest)
You can just put a print statement inside of the if ray.is_colliding(): block
If your ray never collides with anything, that's probably the issue!
If it does collide with stuff, then it's something else
so it does work if I'm a bit away from a wall but if I'm too close it goes through
when it "works" i hit the wall and go through a smidge before bouncing back/"resetting"
but doing the print debug apparently the bounce back isnt from the ray colliding as it doesn't actually print
Using an implementation with PhysicsDirectSpaceState.intersect_ray() seems to have done the trick, I think
I'm thinking that the raycast node probably doesn't like being used right after being instantiated and being added to the tree