Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] Rotate entity fixed amount of degrees
Apfel Offline
Junior Member

Posts: 19
Threads: 3
Joined: Jun 2011
Reputation: 1
#13
RE: Rotate entity fixed amount of degrees

Hi there,

(03-28-2014, 10:00 PM)Reminiscity Wrote: If I knew what the speed of the rotation is measured in then I could calculate how long it has to be spinning. Right now the speed is 1... but what does that mean? 1 degree a second? No, that much I'm sure of derp xD But that would be the key to calculating an exact delay for the timer I guess.


it is measured in rad/s. That means a whole turn in one second would be achieved with a speed of 2*pi. ( well the acceleration must be very high though)
But I don't know how exact this will be.



regarding the issue with SetMoveObjectState, maybe you could try to reset it after one turn: ResetProp(string& asName);
The Player shouldn't note this, as it has the same position just like at the beginning. (not tested myself)


maybe that helps a bit.
03-29-2014, 10:30 AM
Find


Messages In This Thread
RE: Rotate entity fixed amount of degrees - by Apfel - 03-29-2014, 10:30 AM



Users browsing this thread: 3 Guest(s)