Hey new to this, help would be apprecieted :-)

Started by demonbyte, March 04, 2006, 07:30:03 PM

Previous topic - Next topic

demonbyte

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

Melssj5

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.
Nada por ahora

Crate

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.

EgonOlsen

translate() affects the child objects of the translated one, while setOrigin() does not.