Body template.

General discussion about the R.U.B.E editor
Post Reply
superGuy
Posts: 3
Joined: Thu Aug 13, 2015 12:41 pm

Body template.

Post by superGuy »

Hi there,
I'm making complex 2d physics game and I wonder about to define a physics body template. I'm asking something similar to prefab in Unity3D, you define a gameobject and you use it whenever you want, just create once and then clone and use it.
Is there something similar in Rube?
In my game i have some kind of obstacles with complex shapes, and i need to generate them during the game, so i want to do it from rube editor , define once and then clone them during the game.
Thanks.
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Body template.

Post by iforce2d »

I think typically you would set each complex object up as a separate .rube scene, and merge it into the existing world. There has been a LOT of discussion about this on the forums, this might be a good starting point: viewtopic.php?f=6&t=390
Post Reply