Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: mesh.rotateY? global(world) y axis  (Read 559 times)
kwazai
Community Member
*
Posts: 168


« on: November 30, 2007, 11:27:36 AM »

Code:
                                RETVAL = InputBox("ROTATION ANGLE?")
                                ROTANGLE = CSng(RETVAL)
                                TV8.SetAngleSystem(1)
                                TEMP(I).RotateY(ROTANGLE, False)
                                MP1 = False
                                ROTATEMESH = False

I can't seem to get this to work- any suggestions or a good reference on quaternions?
mike
Logged

murphys law-28th corollary- if there are five ways for something to go wrong and you circumvent all five , a sixth will promptly develop.
jviper
Community Member
*
Posts: 1378

Discipline in training


« Reply #1 on: December 01, 2007, 07:47:34 AM »

what's the problem?
Logged

JAbstract.....Don't just imagine, make it happen!
ZaPPZion
Community Member
*
Posts: 341


« Reply #2 on: December 01, 2007, 07:52:42 AM »

i dont know what your problem exactly is, since it's not clear from your post, but i'm guessing you want to make your mesh rotate around the world's Y axis?
Then you'll have update the position of your mesh.
You'll have to calculate the mesh's angle with the x or z axis, whatever you like, and then add the angle you want to it, then recalculate the x and z components.
This all can be done with a couple sinuses and cosinuses.
Logged
kwazai
Community Member
*
Posts: 168


« Reply #3 on: December 02, 2007, 10:03:07 AM »

i dont know what your problem exactly is, since it's not clear from your post, but i'm guessing you want to make your mesh rotate around the world's Y axis?
Then you'll have update the position of your mesh.
You'll have to calculate the mesh's angle with the x or z axis, whatever you like, and then add the angle you want to it, then recalculate the x and z components.
This all can be done with a couple sinuses and cosinuses.

the global axis rotateY doesn't seem to work in 6.3.--I was looking for an easier way as I want to rotate several meshes at once relative to an arbitrary vertical axis- I've started looking at quaternions(rotate and translate from a matrix). any help would be appreciated.
mike
Logged

murphys law-28th corollary- if there are five ways for something to go wrong and you circumvent all five , a sixth will promptly develop.
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks