Incorrect ShapeCast2D behavior against CollisionPolygon2D with build_mode = BUILD_SEGMENTS
#88222
Labels
Milestone
build_mode = BUILD_SEGMENTS
#88222
Tested versions
Reproducible in:
v4.2.1.stable.mono.official [b09f793]
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
The
ShapeCast2D
node does not behave correctly against CollisionPolygon2Ds built with segments.This bug occurs regardless of the shape used in ShapeCast2D.
This may be related to #87347, as I have also noticed
test_body_motion
in CharacterBody2D failing to detect collisions with corners on segments.cast_motion
andtest_body_motion
appear to share similar logic. I will open another issue for this.ShapeCastAgainstSegments.mp4
Steps to reproduce
Minimal reproduction project (MRP)
MRP_SegmentsCollisionError.zip
The text was updated successfully, but these errors were encountered: