CharacterBody2D and body_test_motion
do not detect corner collisions on CollisionPolygon2Ds with build_mode = BUILD_SEGMENTS
#88227
Labels
Milestone
Tested versions
Reproducible in:
v4.3.dev3.mono.official [36e943b]
System information
Godot v4.2.1.stable.mono - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.4665) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
CharacterBody2D and
body_test_motion
do not detect corners on CollisionPolygon2Ds built with segments. This can be seen by the CharacterBody2D launching off the corner of the polygon labeled "Segments."BodyTestMotion_Against_Segments.mp4
The circle is a CharacterBody2D with the "Basic Movement" template script. Its snap length is set to 100px.
The box that follows the mouse is a static body that runs
body_test_motion
from the mouse downwards. It turns red when the test does not collide with anything.Note that
body_test_motion
becomes less accurate as motion length increases, so its distance has been limited to 200 for this demo.Steps to reproduce
body_test_motion
does not detect a collision at the top of the polygon labeled "Segments."Minimal reproduction project (MRP)
MRP_CharacterBody2D_Segments_Bug.zip
The text was updated successfully, but these errors were encountered: