Can you make gravity only apply to some actors on the scene?

orbnooborbnoob Member Posts: 79
edited January 2012 in Working with GS (Mac)
i want an actor to rotate so i cant just un-check the movable box, is there anyway to make an actor be able to rotate and not move? Also i tried constrain attribute linear velocity y 0 and it didnt work. I have 400 gravity, is there some way to balance it out maybe? ive tried making it move up at a speed of roughly 6.5 to counter act the gravity but this hasnt worked. What should i do?

Comments

  • orbnooborbnoob Member Posts: 79
    oh, thanks T
  • thumbfrenzylabzthumbfrenzylabz Member, PRO Posts: 50
    edited July 2013
    Oh lord.... 2 hours later. Gravity = bad.... *bang*

    So, don't use the Scene->Gravity attribute unless it makes sense. Instead, if you only want certain actors to be affected by gravity then as @tshirtbooth suggested use the accelerate behavior. ACCELERATE! GAAAH

    My issue was that I have snowballs falling, but I want the user to be able to move objects around the scene.....without going into too much detail, I wasn't able to set the linear velocity of the things I wanted the user to be able to move because they were movable = false because I had the scene gravity set to Y = 200.

    My fix was switching the scene gravity to 0,0 and then putting the accelerate behavior on the snowball. I then made movable=true on the actors that I wanted the user to be able to move (makes sense anyway). And boom it works... finally..
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I use gravity for specific types of games as it is easier for some physics types projects but not all. If one has lots of movable stuff that interpolate can't manage as you can use interpolate with movebale off, then don't use gravity.
Sign In or Register to comment.