Gravity Proof Object

decaoeudecaoeu PRO Posts: 61
edited June 2012 in Working with GS (Mac)
Guys i have a scene with gravity Y of 100, and a wanna put clouds in the scene, but when i do that all my clouds fall of the sky, what is the best way to make the clouds gravity proof.

Thanks!

Answers

  • jckmcgrawjckmcgraw Member Posts: 647
    edited June 2012
    @decaoeu

    If I were you, I would rethink your approach a little bit. Set the scene's x and y gravity to 0. Then, have only the things you want to be effected by gravity use the accelerate behavior. Have the direction going down, and choose the amount of gravity you want.

    Now, when you want static actors, you don't even have to worry about doing anything! For instance, your clouds will only need a simple interpolation of the x coordinates, or change attribute: self.motion.linear.velocity.x.

    Hope this helps,
    Jack McGraw
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I agree with jckmcgraw, it's usually better to apply 'gravity' to your individual objects using the Accelerate behavior.

    Jamie
Sign In or Register to comment.