2
votes

I have this code to simulate collision, but my objects wont rotate. So collision seems works good, but without rotation.

1
There is nothing in your code to show you are trying to rotate anything?!sangony
@sangony, I am using physic body I suppose it should rotate it automatically.Matrosov Oleksandr

1 Answers

1
votes

This is strange.

I would say it is because you have set friction to 0.0, nothing is gripping to it to spin it.

Also check the "allowsRotation" property on the physics body to ensure it is set to TRUE.