Hi guys!
I would like to ask the pros here, what am I doing wrong... I created a simple object, what does some things, when collided to another object.
All are phisycs objects.
All things are working fine, until I try to create a clone of my "base" object. (Yes, I clicked its "template" trigger)
The clone function is creating the object, but it doesn't do any phisycs things. It just appears, and does nothing at all. Not falling, etc...
I thought, the clone() function will clone everything from my template object.
Is it a bug, or am I doing something wrong?
Code:
(It's in another object's onClick event, just for testing)
var newobj=wade.getSceneObject("t_wood_cube").clone();
newobj.setPosition(0,0);
wade.addSceneObject(newobj,true);
Finally, the object appears, but does nothing. It just sits where appeared,
Any help apprecciated :)