Hi all,
I’m fairly new to Unity, and as an exercise I decided to make a simple coin pusher game. The coins will fall from the top, land on a shelf, and push other coins off the shelf into the tray below.
I have one script which moves the shelf back and forth, and rigidbody coins falling from above.
The problem I’m having is that the coins do not move with the shelf at all, and instead sit stationary on top as the shelf moves back and forth below.
I then added a script to add a fixed joint to the coins on collision with the shelf, and now the coins do move with the shelf, but are frozen in place as soon as they touch. I’m trying to make it so the coins can follow the position of the shelf, and still be pushed off.
I have searched high and low for a solution to this problem, and so far I have not found anything all too helpful.
Can anybody offer me any advice on how to go about this? I have also tried to read the manual for Unity, however this is not ideal because I don’t actually know what is causing this behavior.
Thank you very much in advance.