GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

gravity, movable and immovable actors

EdwardRHunterEdwardRHunter Posts: 7Member
edited November -1 in Tech Support
How do I make a movable actor 'stand on' an immovable actor in a scene that has gravity? Every thing I try results in the movable actor plunging to its death.

Comments

  • VoidedSkyVoidedSky Posts: 1,095Member
    Use Accelerate down behavior on actors instead of gravity. then don't use it on actors that you don't want to have gravity.
  • EdwardRHunterEdwardRHunter Posts: 7Member
    I really need gravity for this game to handle the physics and collisions. I just need to be able to stand a movable object on an immovable one. Can it be done or no?
  • VoidedSkyVoidedSky Posts: 1,095Member
    you can constrain the position of the object's X and Y.
  • EdwardRHunterEdwardRHunter Posts: 7Member
    I guess I'm not sure what good gravity is then if immovable objects dont act as barriers to movable ones? I tried the path of not using gravity, but I'm making a 'power meter jumping' game and it's much harder trying to inverse everything without gravity than to just let things fall until something stops them.

    Anyone else have any thoughts here?
  • RHRH Posts: 1,079Member
    un tick movable in the physics on the actor
  • EdwardRHunterEdwardRHunter Posts: 7Member
    My understanding is that that attribute is read only at run time. Can someone verify: there is no way for an immovable object to stop a movable object from moving past it with gravity in effect? Not a density setting, not a layer positioning, etc?
  • RHRH Posts: 1,079Member
    You could completely ignore my post. Also set the restitution of both to 0.
  • firemaplegamesfiremaplegames Posts: 3,206Member
    In your unmovable actor, just add a Collide behavior(s). Specify which actors you want that actor to collide with.

    Any actor can collide with any other actor.
This discussion has been closed.