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

xpbd collider gen 😄 #341

Closed
shnewto opened this issue Mar 1, 2024 · 3 comments
Closed

xpbd collider gen 😄 #341

shnewto opened this issue Mar 1, 2024 · 3 comments
Labels
question Further information is requested

Comments

@shnewto
Copy link

shnewto commented Mar 1, 2024

hello! this looks like fantastic crate, thanks for all your work on it!

I'm the maintainer of the crate bevy_rapier_collider_gen and I'm starting in on a bit of work to make it an also xpbd collider crate, but my own experience with xpbd is really limited in comparison to rapier and I could use some pointers ❤️ ❤️

I have a draft PR up where I'm tackling things incrementally, the current state is not much more sophisticated than a search and replace bevy_rapier2d with bevy_xpbd_2d and then fixing what the compiler's had to say. But that's gotten me pretty far!

https://github.com/shnewto/bevy_rapier_collider_gen/pull/11

things I could use advice/help on specifically:

  • setup / usage in the example. there were some things I needed to do in rapier that I'm not sure yet how to do in xpbd (or if i even need to at all), i.e. .add_plugins(RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(1.0))
  • heightfields. i've tried playing with different values for the scalar parameter but i haven't been successful getting it to work for me. any pointers there would be really appreciated

thanks for any guidance you've got to offer!

@shnewto
Copy link
Author

shnewto commented Mar 1, 2024

note about heightfeilds, I was able to get the collider I was looking for using Collider::from(parry::SharedShape::heigtfeild) so no blockers there, would still be curious to know what I'm getting wrong though. thanks for including that advanced strategy section in the docs!

wrt setup/usage the physics could definitely use tuning for the example to be something besides little sprites flying everywhere because their universe's gravity's is confused 😆 but that's not really a blocker for my progress either

@Jondolf Jondolf added the question Further information is requested label Mar 1, 2024
@shnewto
Copy link
Author

shnewto commented Mar 1, 2024

@Jondolf thanks for the quick heightfield update! no more questions about how to use!

@shnewto
Copy link
Author

shnewto commented Mar 2, 2024

I went ahead and pulled the trigger on the rename / new crate but made an issue in case anyone's interested in helping tune the xpbd colliders example

shnewto/bevy_collider_gen#13

@Jondolf feel free to close this issue if you'd like to

@Jondolf Jondolf closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants