Page 1 of 1

Rotate

Posted: Fri Jan 06, 2006 4:16 pm
by Kamazy
Hey i havent poster anything in some time and since i posted a topic which some of you may know but is no more. :) After posting it i felt kinda bad cuz RF is a good engine so i tryed to make onother game but i got a problem.

The problem is the script comand rotate. When i try to rotate the x axis (if its the first one you put in "90.0.0.") it rotates in a flash very fast like in one frame the other axis are fine.

The way i wanted to use it was verry simple you press a key and it rotates 90 deg. And changes its state but theres no problem there.
I tryed every thing until i got so pissed i just deleted everything.

here's exacly what i was doing...
I made a model.(simple box like model)
Made it an actor and a pawn.
Made a simle level there the pawn is in the center floting.
Wrote a simple script for the setup such as scale no colision no gravity and attached a camera.
all i want it to do is rotate 90 deg x then i press "W".
Failed over and over and over again and deleted it all.
If any ones wants to try to do the same it should take you 5-10 mins top.
And if you don't have a problem then i F***** up.

Posted: Fri Jan 06, 2006 5:23 pm
by AndyCR
did you try this?

Rotate(char *Animation, float RotationSpeed, float AngleX , float AngleY, float AngleZ, char *Sound );

Rotate the actor the number of degrees in AngleX, AngleY, and AngleZ at a rotation speed of RotationSpeed degrees per second while playing the actor's Animation animation.

Posted: Sat Jan 07, 2006 3:00 pm
by Kamazy
Yeah i tryed everything.

Posted: Sun Jan 08, 2006 2:05 am
by rgdyman
Let us take a lok at the script you ran for this.
Makes things easier to shoot at. :D

Posted: Sun Jan 08, 2006 8:47 am
by QuestOfDreams
Good work Kamazy, you discovered a small bug in the code :wink:
The X-Rotation isn't done correctly, however Y- and Z-Rotation do work properly.

Posted: Mon Jan 09, 2006 6:40 pm
by Kamazy
Well i was trying to make a verry simple game and ended up with that.
Hope you fix it soon.