- Home /
Make box tip over edge of platform
Hi
I'm trying to make a 1 x 1 x 2 box (Rolling box puzzle game) tip over the edge of a platform, but the problem I'm having is that if half of the 2 meter side is hanging over the edge it stays there, hanging half on the platform, half over the edge.
I've enabled Gravity and disabled controls for the box on trigger. Just can't get the box to tip over consistently.
What is the best solution?
P.S. I'm using Playmaker, but code would help :)
Thanks in advance.
If the box is exactly half over the edge, then it won't toggle over on its own. Not with PhysiX or in real live. If it is more than half over the edge, then it is possible, that the angular drag is high enough to prevent the movement. You can always use scripting to force the box to turn though.
Answer by DaiDesign · Apr 04, 2013 at 12:41 AM
Solved it by simply making the colliders a little smaller than 1 unit. Now the center of the box will always be over the edge of the platform. Not the best solution, but it works.
Your answer
Follow this Question
Related Questions
shrinking according to mass 0 Answers
Check if 2D Player is grounded with Physics2D.Linecast 1 Answer
Gravity simulation not accurate. Can't understand why 1 Answer
Turning gravity on makes objects fly 2 Answers
Why does using the velocity of y for the y velocity value work to simulate gravity? 1 Answer