I am new at 3d programming
I have a scene that contains two object:
A kinematic cube attached to a script
that will moving back and forth
according to Z-axis
A cylinder with mesh collider on top of the cube
Both of them have a rigid body with gravity.
However, the cylinder is not moving along with the cube, I have no idea how to make it move along with the cube
Can anybody five me some tips? Thank you!
Updated: I would like to have the effect just similar to the game “Coin Dozer”, where adding a cylinder on the moving platform will make it move along with the cube, and may drop down from the cube and push by it.
Children ridgid bodies must also be Kinematic if they are expected to be “attached” to something up the parent chain. Check IsKinematic on them and they will stick to another ridgid body.