-
Notifications
You must be signed in to change notification settings - Fork 9
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
protected setCollisionFlags #1
Comments
There's a PhysicsRigidBody.setContactResponse() method. Do you have some other reason to modify the collision flags? There's a PhysicsCollisionObject.activate() method and a PhysicsRigidBody.setEnableSleep() method. Do you have some other reason to modify the activation state? |
I want to add an activation state because, when I spawn a stack of cube, they switch to "active tag" to "wants desactivation" and finally to "island sleeping" and when I kill a cube in the bottom of the stack, the others won't fall. |
After you kill the bottom cube you should invoke activate() on any bodies that might be affected by the change. That should wake them up (if they're sleeping) and allow them to fall. |
@YanisBDF Are the existing methods sufficient for your needs? If they are, I'll close this issue. |
Yes ! Thanks ! |
Hello, I want to add a collision flag to my PhysicsRigidBody but I can't beacause the method setCollisionFlag is protected, same for setActivationState.
The text was updated successfully, but these errors were encountered: