PDA

View Full Version : Rotating things...



RayNbow
11-15-2000, 07:57 AM
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

Raynar
11-15-2000, 02:01 PM
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 (http://rbots.massassi.net) - a project to develop a working Bot for Jedi Knight... download the latest development version here (http://rbots.massassi.net/downloads.php3)

RayNbow
11-17-2000, 07:12 AM
Actually, that's not what I'm looking for... I want to rotate a thing dynamically (using a COG)

Raynar
11-17-2000, 02:25 PM
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 (http://rbots.massassi.net) - a project to develop a working Bot for Jedi Knight... download the latest development version here (http://rbots.massassi.net/downloads.php3)

[This message has been edited by Raynar (edited November 17, 2000).]

RayNbow
11-18-2000, 03:59 AM
I'll try it...

Thanks,

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