-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CCPhysicsNode's scale doesn't scale shapes... #900
Comments
I just realized there are other bugs regarding the CCPhysicsNode and shapes. Even if you don't scale CCPhysicsNode at all, but e.g. you define its content size in points instead of normalized size, then shapes are different/wrong when you run it on iPhone 3.5" and 4". If you can't easily reproduce the issue please tell me to send sample project. Just to remind you, you can't see the wrong shapes when you just enable debugDraw, because debugDraw is added as a child of CCPhysicsNode so it shows correct shapes because debugDraw gets correct parent's transform. But actual shapes are still wrong... |
Same issue here. It would be nice if the scale of the physic node's children changed along with it. |
I have several CCNodes added to CCPhysicsNode. When I scale CCPhysicsNode, shapes aren't scaled for children nodes. Don't know if that's a bug or intended behavior, but how can I apply parent's transform to all shapes?
To be precise, I have to run [shape pointQuery:] for node.physicsBody.body.shapes but I get wrong results when CCPhysicsNode is scaled...
Best
The text was updated successfully, but these errors were encountered: