Actor falls with ground

LucamcLucamc Member, PRO Posts: 60

When my actor jumps on the ground somehow it falls down.
I tried putting the density to 10.000 but even then it is not stable.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Go into the Ground Actors Physics settings and un-check Moveable.

  • LucamcLucamc Member, PRO Posts: 60

    But the game does not move then because my ground is moveable.
    Is there an other way to do it?
    Thanks

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Depends on your specific game, if your ground is only moving side to side. You could Constrain the Y position of your ground to a set value so it does not move down (or up).

  • ImNiklasImNiklas Member Posts: 103

    @Lucamc said:
    But the game does not move then because my ground is moveable.
    Is there an other way to do it?
    Thanks

    If you don't feel like it's too much work, you could re-code it without using physics and instead of gravity you can use a move/accelerate behaviour (270 degrees) in your players actor. The game will run alot smoother if you do so and you won't have to worry about your issue.

  • LucamcLucamc Member, PRO Posts: 60

    @jamie_c‌
    how would the behaviour look like?
    Thanks for the comments.

  • LucamcLucamc Member, PRO Posts: 60

    I have an actor and I would like it run and then jump.
    I constrained the ground @jamie_c‌ and it worked.
    My problem now is that my actor is going into the ground and not running straight.
    Any thoughts?
    Thanks

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Make sure the density of the ground is higher than the density of the player

Sign In or Register to comment.