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

setCollisionGroups help #295

Open
Lightnet opened this issue Nov 28, 2024 · 0 comments
Open

setCollisionGroups help #295

Lightnet opened this issue Nov 28, 2024 · 0 comments

Comments

@Lightnet
Copy link

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?

function collisionGroup(id , groups=[]){
//...
return //bit value
}

let collisionid = collisionGroup(0 , [0, 2, 3]);

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant