Advise for linked image rotation

Monkey Forums/Monkey Programming/Advise for linked image rotation

Trez(Posted 2014) [#1]
Just finishing a RUBE importer for Monkey and I am after a little advise.

RUBE: https://www.iforce2d.net/rube/

Rube allows every physics body to have multiple images attached to it. The images can be rotated and scaled independently of the the physics body inside rube. They can also be rotated and scaled in conjunction with the physics body. At the moment i have two ideas (assumptions) on the best way to implement the child images of the physics body.

1) Create an image in monkey for each image attached to the physics body and update the children when the physics body updates. This would mean when i first load the image into monkey i would need to rotate and scale it on its local axis and replace the image with the new version then I can set the image to body offset to move them together.

2) Create a composite image of all the images and attach that in the same way as above.

3) Some great idea one of you have :)

This is the final part I need to finish up before making the importer available.

Thanks Stuart