rapier.js icon indicating copy to clipboard operation
rapier.js copied to clipboard

Sensors add to rigidBody mass

Open smjnab opened this issue 2 years ago • 1 comments

If you add colliders to a rigidBody and the colliders are set to sensors, the colliders will change the rigidBody mass. I don't think this is intended? Or is there a use for this?

Test https://codesandbox.io/p/sandbox/sensorsaddtorigidbodymass-pkg8dk

Test rows 24 to 62. Row 30 has test type: 1 add sensor, 2 do not add sensor. To see the console log message, show the console in the debug browser by clicking the "bug" icon.

smjnab avatar Nov 17 '23 10:11 smjnab

Just stumbled upon this. Best workaround to this is to set the density of the sensor collider to 0.

BastianGanze avatar Dec 22 '24 12:12 BastianGanze