Character controller Issues

I put this character controller on my player, but I have to adjust the center in z direction, so when I move the player forward there is no complication however if I turn to left or right, the gizmo moves, so the collisions with items or enemies are not efective. Is there a way to avoid the displacement of the character controller?. Cuz sometimes the player mesh can even go throught walls.

Wow!!!

The Character Controller center is in world space! Never noticed that. That’s a bug! (Other colliders are in local space.)

You want to log it, or should I?

You can parent the mesh to the character controller, and make a transform-level adjustment on the mesh. You’ll have to work in terms of the character controller, however. Transform.RotateAround() may help you.

However, perhaps you should first assess the reason that your character controller can’t be centered. Is it necessary?

The gizmo still far from the player

That doesn’t mean anything. Unity has no idea what a “player” is.

But if the character controller is assign it supose to follow the player.But the controller doesnt follow the player if I adjust the z center value,so if the player moves for a while, the gizmo ends like the picture, so is there another way to do this?

242449--8695--$untitled_586.png

Again, there is no such thing as a “player”. You have a mesh, and you have a character controller. If they line up well, there is an illusion that the mesh is a solid object when you move things around.

You can’t move the children (mesh) without breaking everything. Again, what is the reason you are trying to do this anyway?

(I’m logging the bug right now.)

Jessy, well I know that the character controller is a collider, and the problem is that I cant line up well the mesh and the character controller, when Im editing I align the y axis of the mesh and the collider, for some reason, the center of the mesh that compose my player is moved, so I must adjust the z value to line up the mesh axis with the collider, but when I start moving the mesh, I lose the illusion of a solid mesh so the mesh cant be stopped by the walls of a room. And that is why I need to solve this issue.

It just sounds like your mesh is not centered. Please provide a screenshot.

Well the problem is here:
As you can see the axis is not line up with the mesh, and if I try to line up this moving the value of the center z axis in the character controller, the problem gets even worst.

242461--8696--$capture_146.png

I can’t tell what I’m looking at.

I’ve try everything I know but I cant align the controller move with success:
I have a prefab, inside of this are the mesh and bones. The prefab has the animation script and the controller, so is there a way to move the character controller from the point you see in the screen to the blue cross without moving the values of center option that is include in character controller?

242464--8725--$capture_177.png

The problem when I try to make a child with the character controller theres a problem with my animation script, and then I cant make any animation.

As I said in the title I move the controller to the desired point, however when I applied my animation script it is moved to the problem position, why is that
???

Can you post the offending script so we can have a look?

I start doing the enemies, and I noticed that I have the same Issue with character controller, I start thinking it may be because I have multiple animations, I mean I create one max file with 30 frames with the walking sequence and other file with 30 frames with idle sequence and another file with 30 frames with bomb throw sequence. The problem I guess it might be with the bomb anim, because I put the bomb as a child of the player mesh. I do this to make the animation works, and I disabled the sword until I press the fire key. I do the same with the enemies, and I have the same character controller issue.Here are some captures

246201--8844--$capturess_151.png
246201--8845--$captusre_188.png

Or Im not importing well the meshes, could someone tell me how to adjust the pivots and centers of the game objects. Cuz I confused, I guess if I align in 3dsm the pivot with the object I wouldnt have troubles.

I think I solved this problem. Check out my post “character controller centering fix”.