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
Code: [Select]
object3d.cloneObject()
same thing happens when i copy them with
Code: [Select]
new Object3D(object3d, true); // reuse meshbut this works ok:
Code: [Select]
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..  ::)