Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rigidbody sinks kinetic rigidbody when it moves randomly #2076

Open
itn3000 opened this issue Dec 7, 2023 · 4 comments
Open

Rigidbody sinks kinetic rigidbody when it moves randomly #2076

itn3000 opened this issue Dec 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@itn3000
Copy link

itn3000 commented Dec 7, 2023

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 itn3000 added the bug Something isn't working label Dec 7, 2023
@itn3000 itn3000 changed the title Rigidbody sinks kinetic rigidbody when kinetic rigidbody moves randomly Rigidbody sinks kinetic rigidbody when it moves randomly Dec 7, 2023
@Nicogo1705
Copy link

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 :)

@archanox
Copy link

archanox commented Dec 8, 2023

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

@Nicogo1705
Copy link

@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

@itn3000
Copy link
Author

itn3000 commented Dec 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants