How can I detect if an actor is upside-down?

Anyone have some method of doing this? Its probably going to end in a major facepalm on my part but I need help.

Best Answer

  • Bad wolf GuyBad wolf Guy Posts: 206
    Accepted Answer
    Well then make it between a certain angle then. Find out, by rotating your car the angle before it would be considered a flip. Even on a hill it can only rotate a certain amount before it will flip. They are the variables you need, both front and back. I can't help you find those. But when you have found them, put in in a rule if its greater then ..... Or smaller than ...... Then it has flipped.

Answers

  • Bad wolf GuyBad wolf Guy Member Posts: 206
    Maybe when actor is 180 degrees then it will be upside down :) so a simple rule is when actor rotation is equal 180 then .........
  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    @123App The problem is, it has to be EXACTLY 180 or it won't work. I need a small range for detection. I'm working on a racing game and need to detect if the car is flipped but if it is on a hill and flipped then it won't detect it because it isn't exactly 180 degrees. :)
  • BBEnkBBEnk Member Posts: 1,764
    make rule if actors rotation is > then 170 plus < then 190 that way does not have to be exact.
  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    @BBEnk *Facepalm* (What did I tell ya!) DUH! Thank you! And thank you @123App for your help. I had to tweak the numbers a bit but it worked. I must just be tired (or not thinking) because that was obvious. Thank you!
  • Bad wolf GuyBad wolf Guy Member Posts: 206
    Glad to hear it all worked out for you. All the best with your latest game :)

    Cheers
  • Bad wolf GuyBad wolf Guy Member Posts: 206
    Glad to hear it all worked out for you. All the best with your latest game :)

    Cheers
Sign In or Register to comment.