Imagine a bowling game, all of the bowling skittles when they fall to the ground i want to go to the next level. How do i know if all the skittles have fallen to the ground?
You just want to detect that the player has knocked down all of the pins? The easiest thing would probably be to store the starting position and rotation of all of the pins when they’re put in place, and then periodically check whether the current position/rotation of all pins is significantly different from their starting position/rotation. You might want some extra conditions to check for a pin that has moved slightly but hasn’t fallen over. Or maybe rotation is all you really need.
1 Like
transform.up might be useful here. You could check if Mathf.Abs(transform.up.y) < threshold
transform.up.y will be 1 if right side up, 0 of totally sideways, and -1 if upside down
1 Like