Hi,
I’ve been trying to create a 3D platformer using a simple player controlled cube and cubes for the walls (not doing anything too complex atm).
However, when the player moves left to a wall (moving left along the x-axis, the players cubes bounces upwards this is also works when moving right.
The code to move is done via translation:
transform.Translate(Input.GetAxis("Horizontal"),0,0);
The cube just seems to bounce up and away from the other collider and if you hold the directional key down it climbs up it.
I’ve spent a lot of time searching this site and none of the answers have helped me yet!
I’ve altered the settings of the colliding boxes, adjusted the project time and physics settings and to no avail.
Thanks in advance