How to clon an actor

alejandro

06-07-2007 18:09:23

How to clon an body? or actor?

i need something like body->clone(); body->duplicate();

betajaen

06-07-2007 18:23:32

There isn't a way yet. You could get a copy of the name of the mesh used, somehow keep an account of the type of shapes for that mesh. From that you can just basically copy the parts of the Actor; pose, mass, velocity, etc. to the new one.