Quantcast
Channel: Questions in topic: "realistic"
Viewing all articles
Browse latest Browse all 146

How to make moving objects stack, without sliding over each other?

$
0
0
I know there have been many questions about moving platforms, but this one is different. None of the solutions have worked for me. So, I have a coin pusher game (like the game 'Coin Dozer'). The coins will drop down into the machine, and they are pushed around. However, every time a coin lands on top of another coin, they do not 'stack'. They slide on each other and have no friction. Now, I've tried everything. Physic materials and friction, creating fixed joints on collisions, parenting objects on collisions, rigidbody velocity, etc. But nothing seems to make the coins 'stick' together (like in a real coin machine). I made the coins become children of the 'pusher', when they collide with it. So the coins stick to the pusher object and move backwards and forwards. But any coin that does NOT touch the pusher will slide over all the moving coins and remain stationary. This has been very frustrating! Essentially, the coins have no friction against each other. Coins cannot rest on top of other moving coins. My coin pusher will have large numbers of these coins moving around. When I play coin dozer, coins seem to stack and move accurately! They don't slide over each other. It is not a Unity game, however. But it shows realistic friction is possible in games. How can I make the coins behave realistically?

Viewing all articles
Browse latest Browse all 146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>