How not to be affected by gravity!!!!

MBYMBY Member Posts: 74
edited December 2011 in Working with GS (Mac)
Hi, I already know that when you want an actor not to be affected by gravity you put physics.movable to false. But I want my actor to rotate clockwise but if it doesn't have movable true, it won't rotate. Does somebody know how can I make it not to be affected by gravity, or rotate without movable?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    The scene gravity will effect everythign in the scene. So instead of using that, just put accelerate down behaviors in anything you want to have gravity. Then you dont have to do anything to the things you dont want to be effected by gravity and have there moveable attribute true
  • MBYMBY Member Posts: 74
    Will it do the same effect as gravity?
  • calvin9403calvin9403 Member Posts: 3,186
    yes and it that way you can change each object's gravity too, so if you want something to drop faster you can do that

    Calvin
  • MBYMBY Member Posts: 74
    ok thanks I try it and it's exactly what I wanted thanks JohnPapiomitis and that's true and useful too Calvin.
  • dotsonj23dotsonj23 Member Posts: 316
    Just an FYI, if you do need a non movable actor to rotate you can constrain it's rotation to a nonvisible movable actors rotation and then just rotate the nonvisible actor. You can do the same thing with x and y position and accelerate the nonvisible actor which simulates acceleration in your nonmovable actor. I know this uses constrains which are more processor heavy but it can be useful in a number of situations.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited December 2011
    @ RKS

    not a good idea. You dont want a bunch of physics forces trying to collide and challenge each other like that.
  • MrSKYoneMrSKYone Member Posts: 26
    If you have a 200 gravity on your scene, you also could balance this by giving an opposite acceleration behavior to this specific actor.

    Example: Scene general gravity (y) to 200. (actors fall down)
    If you want to have an actor move in a linear angle (on x axis)

    Just set this actor the following behaviors

    Actor accelaration upward (90) with the same exact acceleration (200)
    Then add a change velocity behavior and give him the direction you want. It will balance the gravity.

    This is practical when you only have one or two actors which need to defy gravity.

    Cheers
  • Great information! Thanks to all of you!
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You can always use the interpolate behavior on non moveable actors.
Sign In or Register to comment.