Gravity question

FanStudioUKFanStudioUK Member Posts: 459
edited November -1 in Working with GS (Mac)
If in my scene I have added gravity, is it possible for an actor not to be affected by the gravity? If yes, how?

Thank you

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, once you've applied gravity using the Gravity Behaviour in the Scene attributes, every actor within that scene is affected by it.

    So a workaround is to make/keep the Scene Gravity attribute 0 and 0, and any actors you want to be affected by gravity, put into their Rules an Acceleration Behaviour, setting the direction you want (9 times out of 10 I guess that'll be 270, i.e downwards), Make it Relative to scene; and set Acceleration to something like 1000.

    Hope that helps!

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • NexusGameStudioNexusGameStudio Member Posts: 265
    The have an actor unaffected by gravity, under the physics options of your actors, uncheck "movable", this will make it no move when gravity is into play.

    Keep in mind, since the actor can no longer move now, rules such as "move" or "accelerate" will not work, you will have to use "interpolate" to make the actor move.
  • FanStudioUKFanStudioUK Member Posts: 459
    Thank you guys!
Sign In or Register to comment.