www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: demonbyte on March 04, 2006, 07:30:03 pm

Title: Hey new to this, help would be apprecieted :-)
Post by: demonbyte on March 04, 2006, 07:30:03 pm
New to 3D pretty much, was wondering if you could explain to me a few concepts.

1. Is there anyway to set the position of an object without "moving it". I looked into object3d.translate() and setOrigin(), if someone could explain to me the difference between the two for me in laymens terms i would be quite happy. (the javaDOC explanation didnt really 'click' for me).

ill add more as i get further into my coding thanks for you time
Title: Hey new to this, help would be apprecieted :-)
Post by: Melssj5 on March 05, 2006, 12:12:24 am
well, translate moves the object to a relative position from the original one, and setOrigin sets a point which will be the center of the object.
Title: Hey new to this, help would be apprecieted :-)
Post by: Crate on March 05, 2006, 02:49:52 am
i.e. origin is the "starting point" of a an object. You can set it to put your object anywhere in your world. translate moves the object relative to the origin, so if the origin is at 0,0,0 and you translate by 5,0,0 it will be at position 5,0,0. If you set the origin to 3,1,1 and translate by 5,0,0 it will be at 8,1,1.
Title: Hey new to this, help would be apprecieted :-)
Post by: EgonOlsen on March 05, 2006, 06:29:19 pm
translate() affects the child objects of the translated one, while setOrigin() does not.