Skip to content

WIP: Partial fix to RayShape collision in Bullet

Rafał Mikrut requested to merge github/fork/aqnuep/rayshape_fix into master

Created by: aqnuep

  • Removed optimization avoiding the creation of a parent compound shape for each rigid body. For some reason it breaks RayShape collision and it seems in general the shape wrapper incorrectly has an identity transform when the actual shape doesn't.
  • Removed arbitrary margin applied in the collision algorithm of RayShapes which causes jittered movement. For lack of a better replacement and for lack of any explanation on why it has been introduced, it's now using the shape's margin property instead which is small enough to not show visible jitter.

Fixes #25227 (closed).

Known issues:

  • Even though the repro case in issue #25227 (closed) works fine after this change, RayShape still doesn't work in my own test project and in the Godot TPS Demo (the latter works at least with Godot Physics though).
  • "Slips On Slope" doesn't work in the repro case in issue #25227 (closed) but does work in another of my own test projects.

Merge request reports