Rotation Causes Odd Movement?

HasifUzirHasifUzir Member Posts: 41
edited November -1 in Working with GS (Mac)
My actor (a ball) is supposed to be affected by gravity. So what I've done is set a "game.Gravity" attribute to the game with a value of 700 and have my actor accelerate downwards with it's value set to "game.Gravity". It looks fine and works well if I turn on fixed rotation for my actor. I'm trying to get my actor to look like it's rolling not just a unchanged image so I off fixed rotation. As soon as I do that, during testing my actor collides into a platform and randomly accelerates in different directions.

I'm guessing because it's rotating it's direction of up down left etc "rotates" accordingly? I don't know.

Any help is appreciated. Thanks :D

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you probably have the down acceleration relative to the actor so like you said it accelertaes whatevers forward. Change that and make it relative to scene
  • HasifUzirHasifUzir Member Posts: 41
    *pats forehead*
    So that's what went wrong. I had already set the downward acceleration relative to scene BUT didn't do so for the collisions with my spring, bouncy platform etc actors. Changed it and works fine. :)

    Thanks a lot.
Sign In or Register to comment.