How about a RotateQuad(Angle) function?

Blitz3D Forums/Blitz3D Programming/How about a RotateQuad(Angle) function?

poopla(Posted 2003) [#1]
How about someone help me with one that ALSO controls the length of the quad. I wrote a function to simple rotate a quad to a specified angle(only for the Y Axis, which is what I need), but I can't get it to adjust the quads length in it's local Z axis, if ya know what I mean. Any help? Please? :)


Ross C(Posted 2003) [#2]
Could just use sin for this. Store the points, take the angle you want, then make the new co-ords.

x=cos(angle)*length
z=sin(angle)*length


do this for each length. Or am i missing the point slightly??


poopla(Posted 2003) [#3]
I dunno, I'm too tired to think atm.


poopla(Posted 2003) [#4]
I got it, Amazingly enough. :)


poopla(Posted 2003) [#5]
I got it, Amazingly enough. :)


Ross C(Posted 2003) [#6]
Mmmm, so am i. hehe