Could you tell me how to do combined rotation of two objects?
Ershad K <[email protected]>
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
Hai,
I'm new to vpython. I've two objects, a cube and a pyramid. After
changing the position of pyramid from its origin, could you tell me how
to rotate both objects combined? I tried
cube.rotate(angle=45, axis=(0,1,0))
pyr.rotate(angle=45, axis=(0,1,0))
But it's rotating on two different axis of its on. I would like to have
something like two objects sticked together and having rotation.
Could you please help me to do so?
Thanks in advance.
Kind regards,
Ershad K
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev