You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When I set character with KinematicBody2D and RayCastShapes2D as in this post from news section character is stuck on the bottom side of one way platform (snap vector is not set),
if I then press jump one more time he is in postition it is supposed to be (snap vector is not set).
If I set snap vector according to the news post then this hapens. On first jump player is stuck like this:
I can move player thru platform but if I go to the edge player starts to jumps up and down:
If I jumo one more time player is above platform but RayCastShape2D does not register collision only KinematicBody's collision shape registers collision:
It seems to me that when player is inside the platform it stops when RayCastShape2D detects botom of platform so that player is stuck inside the platform (bottom edge of platform). Desired behavior is for RayCastShape2D not to detect one way platform when player is passing thru it, wich is not true unfortunatly. Is this behaviour a bug? I can disable RayCastShapes2D when characeter is jumpig, but thats have its one issues. I am interested to know is this a wonted behavior or bug?
It seems to me that best way for one way platforms should be to use LineSegnemt2D and eneable one way collision like this:
But same problems are present as with ConvexPolygonShape2D. RayShape does not detect LineSegnemt2D only CapsuleShape detects it, and if you rotate LineSegnemt2D then there is no effect of one way collision at all.
Godot version:
3.1
OS/device including version:
Windows 10
Issue description:
When I set character with KinematicBody2D and RayCastShapes2D as in this post from news section character is stuck on the bottom side of one way platform (snap vector is not set),
if I then press jump one more time he is in postition it is supposed to be (snap vector is not set).
If I set snap vector according to the news post then this hapens. On first jump player is stuck like this:
I can move player thru platform but if I go to the edge player starts to jumps up and down:
If I jumo one more time player is above platform but RayCastShape2D does not register collision only KinematicBody's collision shape registers collision:
It seems to me that when player is inside the platform it stops when RayCastShape2D detects botom of platform so that player is stuck inside the platform (bottom edge of platform). Desired behavior is for RayCastShape2D not to detect one way platform when player is passing thru it, wich is not true unfortunatly. Is this behaviour a bug? I can disable RayCastShapes2D when characeter is jumpig, but thats have its one issues. I am interested to know is this a wonted behavior or bug?
Maybe it is related to issue #26402
Minimal reproduction project:
PlatformerTutorial.zip
The text was updated successfully, but these errors were encountered: