www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on July 06, 2011, 09:13:18 pm

Title: Merge objects
Post by: Thomas. on July 06, 2011, 09:13:18 pm
In method Object3D.mergeAll(objects) does not matter how is object translated and rotated?
Title: Re: Merge objects
Post by: EgonOlsen on July 06, 2011, 09:40:12 pm
No. It merges the objects in object space, not in world space.
Title: Re: Merge objects
Post by: Thomas. on July 06, 2011, 09:49:27 pm
Could you add same method, but merge in world space? :) or how to do it?
Title: Re: Merge objects
Post by: EgonOlsen on July 07, 2011, 12:25:33 am
You can make rotations and translations permanent by calling rotateMesh() and translateMesh() on the object in question. Then merge the objects.
Title: Re: Merge objects
Post by: Thomas. on July 07, 2011, 05:29:07 pm
thanks :)