Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Rotating things...
Rotating things...
2000-11-15, 4:57 AM #1
I'm looking for a function which rotates a thing using a vector... Any suggestions?

Thanks...

-RayNbow
Signature, what's that? [http://forums.massassi.net/html/rolleyes.gif]
-RayNbow
2000-11-15, 11:01 AM #2
If you want the object to constantly rotate, just add this to the object's template.

angvel=(0.000000/90.000000/0.000000)

This is from the _powerup parent template that makes the powerups rotate.

Cheers...

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2000-11-17, 4:12 AM #3
Actually, that's not what I'm looking for... I want to rotate a thing dynamically (using a COG)
-RayNbow
2000-11-17, 11:25 AM #4
I think this might do the trick. From the JK Specs:


RotatePivot()

Rotates the thing specified by RotThing in a time (in seconds) given in RotTime. The center of rotation is specified by the X/Y/Z part of the frame with number RotFrame of the thing. The PCH/YAW/ROL part of that frame defines direction and angle of rotation. A negative value in RotTime inverses the direction of rotation.

Use: RotatePivot(thing RotThing, int RotFrame, flex RotTime);

Cheers...

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here

[This message has been edited by Raynar (edited November 17, 2000).]
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2000-11-18, 12:59 AM #5
I'll try it...

Thanks,

-RayNbow
No signature [http://forums.massassi.net/html/biggrin.gif]
-RayNbow

↑ Up to the top!