Stop actor from flipping out!

Hi, I will say upfront I'm a newbie and hope this question is easy to answer, though I've looked on the forums and can't find an answer...

I have an actor (a car), when it goes over a ramp or drops over a ledge it tumbles (ending up on its roof or side) and keeps going. How to I stop it doing this?!

Note: I want it to tilt when it goes up/down hills etc which it does just fine at the moment.

Comments

  • MadCursorMadCursor Member Posts: 15
    Hi!
    So, the one of the things you can try, is to create an actor (e.g. STOPPER) and place it on the roof. In the car actor place attribute:

    Collide with actor of type STOPPER
    And on the left-side panel in car actor, set bounciness to 0, and then in physics tick fixed rotation

    Then in the STOPPER actor set bounciness to 0 in that panel. And also in Physics (which is also there in panel :) ) UNtick Movable and tick fixed rotation.
    Also in STOPPER graphics set blinding mode to multiply. It will become invisible.

    Hope it helped! :)

    MadCursor
  • philmphilm Member Posts: 8
    Thanks for that. Isn't there just some setting that restricts the actor from rotating beyond a certain amount?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited December 2013
    There is not a specific setting but you can use Rules to set up your own, for example:

    Rule:

    if self.rotation > 45

    Change Attribute self.rotation to 45


    A rule like that would stop your actor from rotating beyond 45°.
  • SocksSocks London, UK.Member Posts: 12,822
    . . . . what everyone else said + take a look at angular drag too.
Sign In or Register to comment.