I have a 2d sprite with a character controller, and basically everything is using 3d colliders and such. I prefer to use this because one of my plugin doesn't support 2d colliders, and so i'm trying to work with 3d colliders on everything.
Now with the problem. I created a tilemap, it generate a boxed collider for each tile individually and created a whole mesh collider, and now here's the issue, whenever my player goes through each block it bumps downwards and then makes a jittery feel because all my blocks are connected.
Here's a webplayer(
https://dl.dropboxusercontent.com/u/67760294/broken/broken.html), if you dont understand. (I wouldn't understand myself either)
As you can see when you move the player, you can't see it, but between each block the characters bumps down then back up. Im using the average character controller with the average character controller move script
CharacterController controller = GetComponent<CharacterController>();
if (controller.isGrounded) {
moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, 0);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= speed;
SafeMove(controller.velocity);
}
moveDirection.y -= gravity * Time.deltaTime;
controller.Move(moveDirection * Time.deltaTime);
How would I go about fixing this?