1. #1

    skill game , after 5 seconds of no movement end game , help

    i am making a skil game were u use explosions to make the tractor tire go thru the course , all is nearly finished but as im using a custom game char you can never fail , u can come to a stand still and this is what i need help with , i need help on how to make it so my game char (tractor wheel) will end game after it hasnt moved over say 0.100m within 5 seconds

    as when sometimes the tractor wheel vibrates on the ground causing distance jitters within .050m so if someone can help and give me quick guide on what to do

    much apreciated
    Share this post

  2. #2

    Re: skill game , after 5 seconds of no movement end game , h

    Completely off top of my head but i would say you need to monitor how far along the driveline (if poss, other wise distance from start or something) the tire is (maybe something like every couple of seconds [5 might be a bit too long but test to find sweet spot]) and check it against a previous check to see if the difference is within a range (say when the difference between current check and previous is below 0.2 meters game end is triggered otherwise new check is set to old checks variable datasource for the next check to be compared).

    havent tried anything like this but sounds like it should work fine
    Share this post

  3. #3
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: skill game , after 5 seconds of no movement end game , h

    if your object is pure physics based, take a look at the angular momentum values from the object info source, they may work.
    Share this post