Stopping an Upside down Actor
forklift
Member Posts: 386
Hi again everyone. If I've got an actor that constantly moves in either the left or right direction. Sometimes it will get caught on terrain and flip itself upside down. (i want this flipping to happen, but i want them to stop when it does). What's the best way to 'turn off' all its rules? Right now I've got lots of actors that are sliding around on their faces lol.
Think of it as a motorcycle jumping off a ramp. I want it to make the jump, but if it lands upside down or on its front, don't accelerate anymore.
Would you use something like "when self.rotation is not equal to 0, do nothing... OTHERWISE accelerate 0angle speed 200?"
Or is there a cleaner what that i'm not thinking about?
Think of it as a motorcycle jumping off a ramp. I want it to make the jump, but if it lands upside down or on its front, don't accelerate anymore.
Would you use something like "when self.rotation is not equal to 0, do nothing... OTHERWISE accelerate 0angle speed 200?"
Or is there a cleaner what that i'm not thinking about?