- Home /
How make an object fall after a cube moves off the object?
How do you make a platform block (cube)fall after you move a box (cube) on it then off it. So its there when you move on it but when you walk off it falls down. (script please)
Movement - Cube block falling - Platform
what ????
OnCollisionExit : http://unity3d.com/support/documentation/ScriptReference/Collider.OnCollisionExit.html?from=Collision
I've already answered this question, when you asked it about a day ago. Please, don't waste everyone's time by reposting when an answer already exists.
If you have a problem with the existing answer, please post comments there and I'll try my best to help you.
Answer by reptilebeats · Mar 16, 2012 at 04:01 AM
theres a load of different ways you can do this depending on on different aspects of your game,
for instance the first one i can think of is, and for me the quickest to do is assigning an invisible trigger roughly the same size as your platform if anything just a little bit over.
then set the hight of this trigger to whatever the maximum height the object can go to onto this platform, and of course parent it in case ur platform moves or just to remember its a part of that object. then put in a simple on trigger exit line destroy.
then of course with this if you wanted the platform to fall after a couple seconds u could use on enter yield then play animation, then destroy.
just a quick idea