Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set observer pivot point

2 views
Skip to first unread message

palvinder07

unread,
Mar 5, 2009, 5:04:17 AM3/5/09
to
I want to adjust pivot point at bottom side of the cylinder. How can i do this?

Palvinder.

openspark

unread,
Mar 5, 2009, 3:08:37 PM3/5/09
to
It sounds as if you want to rotate the cylinder around a point other than its
centre. There are several ways to do this. Here is one that is conceptually
easy to understand.

1) Create a new group-
2) Move the group to where you want the pivot point of your cylinder to be
3) Use addChild() to make the cylinder a child of the group, using the
#preserveWorld parameter
4) Rotate the group: the cylinder will rotate with it

palvinder07

unread,
Mar 6, 2009, 12:23:49 AM3/6/09
to
Hello!
Many many thanks for the reply, but i don't want to rotate the cylinder. i
want to decrease or increase the height of the cylinder. Pivot point should be
set at the bottom side of a cylinder.

Regards
Palvinder.

necromanthus

unread,
Mar 6, 2009, 2:54:29 AM3/6/09
to
[q][i]Originally posted by: [b][b]palvinder07[/b][/b][/i]

Many many thanks for the reply, but i don't want to rotate the cylinder. i
want to decrease or increase the height of the cylinder. Pivot point should be
set at the bottom side of a cylinder.[/q]

It doesn't matter if you want to rotate the cylinder or to modify its height.
If you cannot alter the pivot (of any 3D model) in your 3D modeler, James gave
you a good advice.
In your case, all you have to do is to modify the scale (on the desired
direction) of the group.
The cylinder (a child) must obey!
;)

cheers


0 new messages