I am trying, to recreate an old game. Called “I’ve got some balls”.
But, whenever the player sphere, hits a rotating wall, i falls through it, or it just get’s stuck in it.
The wall is 0.4 thick. Do i have to make it thicker?
The wall rotation code:
if (turnAxis == 0)
rotation = Quaternion.Euler(0, desiredAngle, 0);
else if (turnAxis == 1)
rotation = Quaternion.Euler(desiredAngle, 0, 0);
else if (turnAxis == 2)
rotation = Quaternion.Euler(0, 0, desiredAngle);
transform.rotation = rotation;
The ball is my own physics material, called Marple.