Hi guys, currently I’m experimenting with machine learning on Unity, the task I’m performing is very simple.
I have a cube and a ball. The ball is dropped on top of the cube, and the cube tries to keep it on top of itself as long as it can.
When the cube stabilizes the ball, the ball’s speed is 0, the cube is still rotating a little bit (because it’s still trying to balance the ball on top of itself) but the ball doesn’t move.
At this point, the rigidbody component stops working, the speed is 0, the angular velocity is 0, the velocity is 0, everything stops.
These are the settings for the rigidbody component of the ball:
These are the colliders I have on the cube:
The Box Collider which have trigger enabled is only to detect if the ball is on top of the cube, the other one to handle the physics collisions. The ball have only one script attached to it, but it’s empty.