godot icon indicating copy to clipboard operation
godot copied to clipboard

Improve Shape2D's `custom_solver_bias` description

Open Calinou opened this issue 3 years ago • 2 comments

This backports the description from master. See https://github.com/godotengine/godot/pull/51121#issuecomment-1118008465.

Calinou avatar Aug 06 '22 03:08 Calinou

The docs refer to a missing property.

akien-mga avatar Aug 06 '22 10:08 akien-mga

The docs refer to a missing property.

It looks like the default bias isn't adjustable in 3.x. It's hardcoded to 0.3 in both 2D and 3D:

https://github.com/godotengine/godot/blob/42fe8ab084fbf16d3dc250f26ff7744db928bd68/servers/physics_2d/body_pair_2d_sw.cpp#L338

https://github.com/godotengine/godot/blob/42fe8ab084fbf16d3dc250f26ff7744db928bd68/servers/physics/body_pair_sw.cpp#L263

Calinou avatar Aug 06 '22 11:08 Calinou

Thanks!

akien-mga avatar Aug 07 '22 14:08 akien-mga

Cherry-picked for 3.5.1.

akien-mga avatar Aug 08 '22 11:08 akien-mga