I have been trying to make a spawning object move around, make collision, then rotate and move an other direction again. My world has a ground, which has some level difference at some points en walls surrounding it. I have a empty GameObject that spawns a ball. I want the ball to keep moving around and bounce of walls once it makes collision.
The spawning, collision and rotation work fine. But I somehow can’t keep the prefab, which is a simple ball in my case and a rigidbody, to keep moving around the surface. The walls have a Boxcollider.
Can someone please help me? Struggling with this problem for some weeks now and it’s driving me crazy. I have tried many many things and lost sight of it a bit.