-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
setCollisionGroups help #295
Comments
You may have already solved it but I'll answer anyway. In Rapier's
Note that there must be exactly one bit set to represent the membership. To make A and B collide, set them as follows:
In the following example, A collides with A, B, and C,
A straightforward implementation of a function to create a collision group looks like this:
However, the website you referred to uses 0 and 3 for membership. A function implementing this logic would look like this:
|
I am total lost how the collision filter works.
https://rapier.rs/docs/user_guides/javascript/colliders
Is there JavaScript easy call to convert to bit value?
one reason is learning how to deal with the vehicle collisions.
There is tool for this site while learning it.
https://sbcode.net/threejs/physics-rapier-impulsejoint-motors/
The text was updated successfully, but these errors were encountered: