Hello,
I’m Andwari and am quite new to unity. I have made a simple tank game.
The bottom of the tank is the parent. On top of it I have placed a child box, which is my tank turret with a barrel.
I control the bottom movement and the top rotation with left and right controller sticks.
I have box colliders for the bottom and the top and a capsule collider for the barrel.
When im close to the wall and rotate the top and the barrel collides with the wall the whole tank is moved away from the wall. Everything works fine so far.
But when I position between two walls the barrel still pushes away the tank from the wall it collides with but therefore the other parts of the tank seem to ignore the second wall and vanish into it.
I have a Rigidbody for the Bottom. The top is a child of the bottom and the barrel is a child of the top.
I have searched the internet for answers but could not find what I am looking for or maybe am missing the correct ‘name’ of my problem. I also tried different collision detections.
Does anyone know how to solve this?
Best regards,
Andwari