Skip to content

Enabling contact monitor causes frictionless RigidBody2d to act as if it has friction #375

@pufferfish101007

Description

@pufferfish101007

Describe the bug

When a RigidBody2D with friction 0.0 has contact monitoring enabled, or the maximum contact reporter limit is non-zero, or if 'visible debug shapes' are enabled, the rigid body acts as if it does have friction

To Reproduce

Steps to reproduce the behavior:

  • setup project with a rigidbody2d (with zero horizontal motion and zero friction) sliding along a staticbody2d (with a constant_linear_velocity set and zero friction)
  • run the project and observe the rigid body sliding as expected
  • enable contact monitoring on the rigidbody2d, or enable visible collision shapes
  • run the project and observe that the rigid body now moves along with the static body once it lands

demo video:

2025-08-01.17-50-21.mp4

Expected behavior

Enabling contact monitoring should not affect the apparent friction of the body.

Environment:

  • OS: Windows 11
  • Version: 0.8.10
  • Godot Version: 4.5-beta3
  • Type: simd single 2d

Example project(zip)

godot-test.zip

or https://github.com/pufferfish101007/godot-rapier2d-bug-demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions