Pivot Joint with FixedRotation=True

Hi all,

I’m trying to rotate objectB around objectA but without objectB rotating around it’s own axis. I tried connecting A & B with a pivot and then setting B.isFixedRotation=True but that crashed Corona.

So I made a small rectangle that was at the center of B and joined that rectangle to A by a pivot joint and then connected the rectangle to B by another pivot joint. That seemed to do the trick but the object B is pretty large and touches object A and thus prevents the rotation… any thoughts on how to make object A… invisible but still be able to act as a joint?

Thanks,
David [import]uid: 74346 topic_id: 13099 reply_id: 313099[/import]

Read up on collision filters/masking in Corona.

http://developer.anscamobile.com/content/game-edition-collision-detection#Collision_categories_masking_and_groups

With it you can prevent your objects A and B from ever colliding with each other. It’s not the most intuitive thing to get set up correctly, but there’s a worksheet that can help you once you learn the basic concepts.

http://developer.anscamobile.com/forum/2010/10/25/collision-filters-helper-chart [import]uid: 9422 topic_id: 13099 reply_id: 48126[/import]

Thanks Xenon, time for some studying =] [import]uid: 74346 topic_id: 13099 reply_id: 48196[/import]