View Single Post
  #1  
Old 08-12-2004, 05:13 PM
tavaksai tavaksai is offline
Member
 
Join Date: Jul 2004
Posts: 22
node3d.center function

Hi,

Is it possible to stop the node3d.center(...) function from changing the position of the object as soon as it is called?

For example:

obj1 = viz.add('box.wrl')
obj1.rotate(40,0,0)
obj1.center(-1,0,-1)

As soon as the center function is called, it changes the rotation
(translation really) of obj1 relative to new center. I would like obj1 to stay still when center function is called and rotate around the new center only when obj1.rotate(...) is used.


Max
Reply With Quote