Author Topic: Hey new to this, help would be apprecieted :-)  (Read 2592 times)

Offline demonbyte

  • byte
  • *
  • Posts: 1
    • View Profile
Hey new to this, help would be apprecieted :-)
« 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

Offline Melssj5

  • double
  • *****
  • Posts: 715
    • View Profile
Hey new to this, help would be apprecieted :-)
« Reply #1 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.
Nada por ahora

Offline Crate

  • byte
  • *
  • Posts: 25
    • View Profile
Hey new to this, help would be apprecieted :-)
« Reply #2 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Hey new to this, help would be apprecieted :-)
« Reply #3 on: March 05, 2006, 06:29:19 pm »
translate() affects the child objects of the translated one, while setOrigin() does not.