www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: raft on June 24, 2010, 11:48:28 PM

Title: missing cloned objects
Post by: raft on June 24, 2010, 11:48:28 PM
somehow my cloned objects are missing. they dont appear. i clone them with object3d.cloneObject()

same thing happens when i copy them with
new Object3D(object3d, true); // reuse mesh
but this works ok:
new Object3D(object3d, false); // dont reuse mesh

any ideas ?
Title: Re: missing cloned objects
Post by: raft on June 25, 2010, 12:11:05 AM
solved. i was calling translate(..) and translateMesh() on cloned objects. which causes all the shared meshes translate cumulatively and go out of scope..  ::)