- Home /
Pallet falls through forks
Hello, and I'm back with another forklift question!
It seems like when I lift the pallet, it just falls off. It doesn't do this everytime. What I mean by falling off, is it just kinda ignores the upper collider, and falls right through it. Often when I move the forks up and down with the pallet on it
Here's my pallet:
I used quite a lot of colliders, so I'm thinking the physics just can't handle colliders to be this precise?
In the rigidbodies, I turned on Continous Dynamic, which seemed to help with my old pallet, but now, it makes the pallet bounce on the floor? Hmm.. Seen anything like this before?
Need anymore information? Feel free to ask :) Thanks!
Try removing the rigidbody. Unless you need to check for collision, I don't think you need that as far as I'm concerned. It's what's making your object fall through. Or if you really want it, disable the gravity when the forklift collides with the pallet and re enable it when it's not. That's how I would do it personally.
Well, there is collision. The collision happens when I try to lift up the pallet with the forks. So I need that rigidbody :) I really don't want to disable gravity, as I know this is possible.
are you using forces in FixedUpdate to move the fork? how much slimmer are the fork colliders compared with the gap in the palette (the fork colliding with the bottom box collider might push it through the top collider). are the forks just box colliders also?
http://gyazo.com/49073738b56d8d43987dc43c4b86cd1e I'm using transform in FixedUpdate, yes :) The forks are mesh colliders (not convex).
No, you write it in the answers and tell the people how you did it exactly and if possible, what the problem was. <3
Answer by Scribe · Jan 08, 2015 at 12:32 PM
Does it help if you try changing the fork colliders to two box colliders, or two long capsule colliders?
Wow. I really thought I tried this, without any good results. But guess what? It actually worked! Thanks a lot! Please convert it to an answer, so I can accept it :) Thanks!
Glad I could help :) done! In general unless absolutely necessary, avoid mesh colliders like the plague, the primitive colliders are optimised and far more reliable!
Answer by Cheese_Gaming · Jan 08, 2015 at 06:21 AM
Try using a mesh collider... then if you are using 2 mesh colliders, you need to make one of them convex... I believe this should work.
http://gyazo.com/10d8f6142819266ee15fae267b678559 This is what it looks like with convex, so no solution there. Also, mesh collider on the pallet just simply doesn't work. The forks do have a mesh collider, but just not convex. Thanks for your suggestion