stride icon indicating copy to clipboard operation
stride copied to clipboard

Rigidbody sinks kinetic rigidbody when it moves randomly

Open itn3000 opened this issue 2 years ago • 4 comments

Release Type: Official Release

Version: 4.2.0.2043

Platform(s): Windows

Describe the bug Some rigidbody(as BodyA) sinks another kinetic rigidbody(as BodyB) if following conditions

  • BodyA is standard rigidbody(simple sphere)
  • BodyB is kinetic rigidbody(wide box)
  • BodyA is on BodyB
  • BodyB moves to horizontaly random

To Reproduce Steps to reproduce the behavior:

  1. create project as New Game
  2. add sphere collider to sphere set friction as 0.5
  3. creating box model and kinetic box collider under the sphere
  4. set script to move box with cursor( my source
  5. run project and move box to random direction

here is my sample project: https://github.com/itn3000/StrideKinematicTest

Expected behavior the sphere slides on box and does not sink to box

Screenshots StrideKinematicTest

Log and callstacks no logs.

Additional context

  • I changed CCD params, but nothing affected.
  • it was occurred even if moving box slowly(half speed)

itn3000 avatar Dec 07 '23 14:12 itn3000

probably not what you want to hear from that issue, but as a work around, i would be glad to see someone using my Bepu implementation :)

Nicogo1705 avatar Dec 07 '23 15:12 Nicogo1705

@Nicogo1705 any plans to replace bullet with Bepu within stride as the default physics engine?

archanox avatar Dec 08 '23 05:12 archanox

@Nicogo1705 any plans to replace bullet with Bepu within stride as the default physics engine?

It doesn't depend only on me. I've invested quite a bit of time in Bepu; the implementation is starting to work really well and is becoming complete. I still have a minor issue with serialization in the editor (an error that pops up somewhat randomly). From there, if the maintainers of Stride want a PR, I need to know exactly what needs to be changed and the effort it would require. Depending on that, Bepu could officially be a part of Stride.

But we're somewhat off-topic. If you have other questions, I invite you to my repositorry or to a dedicated discussion on the Stride repository or Discord

Nicogo1705 avatar Dec 08 '23 10:12 Nicogo1705

I tested on bepu impl( https://github.com/Nicogo1705/BepuPhysicIntegrationTest ), the problem has not occurred so far.

itn3000 avatar Dec 18 '23 15:12 itn3000