How to fix collision tunnelling with CharacterBody2Ds?
reddit.com·14h·
Discuss: r/godot
Flag this post

Hi! I’m going straight to the point:

As you can see in this video, when the player (CharacterBody2D) enters the blue zone (an Area2D, children of an interior component of the ship) it is correctly reparented as I programmed. The issue happens at great speed, the player suddenly is tunneling through the interior of the ship and gets ejected to space!

I tried many things to fix this issue: setting the player’s velocity to the ship’s velocity when in the zone (see my comment down there; I should be able to put a video), trying to get physics fps as high as possible, even tried with CCD and basic RigidBodie2Ds. But the issue persists. I saw there was some possible solution with raycast stuff but couldn’t really get something working.

***Feel free to ask for any info you need. A…

Similar Posts

Loading similar posts...