#Why does the raycast3d randomly not detect collisions with bodies

1 messages · Page 1 of 1 (latest)

minor hazel
#

despite the player clearly colliding with those same bodies, the raycast acts like they aren't there

#

the raycast's length is more than enough to intersect the walls

#

you can see the debugdraw line representing the raycast going inside of the wall

#

but the raycast wont detect the collision

minor hazel
# minor hazel

i already tried adding force_update_transform in there too

#

it depends on the direction of the player?????

minor hazel
#

the target position is in local space!

#

multiplying the vector that i was trying to make the target position by the player's inverse basis fixes it