rotation

superalpensuperalpen Member Posts: 7
edited November -1 in Working with GS (Mac)
I wanted a information:
> how can I count the revolutions of himself as an actor?

superalpen

Comments

  • Grubby_NerdblenderGrubby_Nerdblender Member Posts: 22
    If it's a timer based rotation, for example 1 complete rotation per second then you could do:

    Every 1 second

    Change Attribute self.rotationCount to self.rotationCount+1

    Or if it's physics based rotation then maybe this: (Although I can't test it right now as I'm at work).

    If self.rotation = 0 and Self.velocity does not = 0

    Change Attribute self.rotationCount to self.rotationCount+1

    Without the velocity part it might keep increasing when the actor is stationary, if it happened to be sat at 0 degrees rotation.

    Might work, might not but that's how I reckon I'd tackle it first.
Sign In or Register to comment.