I have a player character with a body and a gun, the body has a physical body but the gun doesn’t. Is there a way to move them together like they are one object instead of translating them separately? Moving physics objects with display groups might be buggy I hear.
Below is a good tutorial on the subject. Keep in mind you can create a physics body independent of the image, and incorporate it into the below technique like any other object:
https://coronalabs.com/blog/2012/10/09/dynamically-optimized-sprite-sheets/
Make the gun a physics object, but static and then use a joint to keep them together.
Below is a good tutorial on the subject. Keep in mind you can create a physics body independent of the image, and incorporate it into the below technique like any other object:
https://coronalabs.com/blog/2012/10/09/dynamically-optimized-sprite-sheets/
Make the gun a physics object, but static and then use a joint to keep them together.