Rotate

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
Kamazy
Posts: 146
Joined: Wed Jul 20, 2005 2:59 pm
Location: Everywhere And Nowhere

Rotate

Post 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.
Image
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post 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.
User avatar
Kamazy
Posts: 146
Joined: Wed Jul 20, 2005 2:59 pm
Location: Everywhere And Nowhere

Post by Kamazy »

Yeah i tryed everything.
Image
rgdyman
Posts: 84
Joined: Tue Jul 05, 2005 7:05 am

Post by rgdyman »

Let us take a lok at the script you ran for this.
Makes things easier to shoot at. :D
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post 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.
User avatar
Kamazy
Posts: 146
Joined: Wed Jul 20, 2005 2:59 pm
Location: Everywhere And Nowhere

Post by Kamazy »

Well i was trying to make a verry simple game and ended up with that.
Hope you fix it soon.
Image
Post Reply