[Resolved] move ball image with a face using physics

Guys,

I want to be able to move a ball which has a face on it… left and right based on physics…

I can do this easily using applyLinearImpulse on the object… but the issue is the face moves with the ball… ie… when the ball starts to roll the whole face rolls… how can i make the face always face up right… when the ball moves?

Hope that makes sense… [import]uid: 67619 topic_id: 33759 reply_id: 333759[/import]

Better example is the ball has the number 3 on it… I always want the number 3 upright on the ball… when it moves [import]uid: 67619 topic_id: 33759 reply_id: 134152[/import]

Try using this …

ball.isFixedRotation = true  

Stefan [import]uid: 2646 topic_id: 33759 reply_id: 134159[/import]

Stefan,

Thanks for that…

one question though… that works… but how do you do something similar to the game freeze? where the face always stays up right but the outer seems to rotate? is that a ball inside a ball?

see

http://www.coronalabs.com/blog/2012/12/03/app-of-the-week-freeze/
[import]uid: 67619 topic_id: 33759 reply_id: 134279[/import]

Better example is the ball has the number 3 on it… I always want the number 3 upright on the ball… when it moves [import]uid: 67619 topic_id: 33759 reply_id: 134152[/import]

Try using this …

ball.isFixedRotation = true  

Stefan [import]uid: 2646 topic_id: 33759 reply_id: 134159[/import]

Stefan,

Thanks for that…

one question though… that works… but how do you do something similar to the game freeze? where the face always stays up right but the outer seems to rotate? is that a ball inside a ball?

see

http://www.coronalabs.com/blog/2012/12/03/app-of-the-week-freeze/
[import]uid: 67619 topic_id: 33759 reply_id: 134279[/import]