#Colliding with certain walls teleports the CharController

1 messages · Page 1 of 1 (latest)

upbeat flame
#

Hi guys, sorry if I sound incoherent but this issue has been bugging me for quite a while and I honestly don't know what's going on. I use EasyPeasy FirstPersonController, which I modified heavily to do things like a simple state machine to choose speed, game-specific thinks and others. However, I noticed that when trying to walk around some of the corners in my game, the player just gets teleported into middle of nowhere.

I already tried

  1. Making sure there's only Character Controller and no other colliders (even one isTrigger collider)
  2. Changing Skin Width
  3. Modifying the script to catch NaN's if they somehow ended up thrown into the controller.Move()
  4. Setting mesh colliders of the walls to convex
  5. Stripping most of the controller script's methods, it occured even when there was a simple input read fed into controller.Move()

However, the issue still occurs and I honestly don't know what's going on. Some of the code has been made by AI, but like I said it occurs even when I pretty much rewrote the thing to be as simple as possible. I'm starting to think it's caused by the collider of the wall, but it's a simple mesh object. Has anyone met a problem like this?

stoic lark
#

is all the movement through controller.Move?

#

or is there perhaps something else modifying transform.position?

#

narrowing it down to the codepath that causes this would help

upbeat flame
# stoic lark is all the movement through controller.Move?

Only this, but I might as well check again.

There is also moving the camera root to stimulate head bobbing, but like I said the issue occurred even when I simplified it to only controller.Move() in the update method.

Also since it's a character controller, afaik it can't change its transform.position?

stoic lark
#

there could be something else erroneously setting transform.position when it shouldn't

#

have you tried debugging the Move values, to see if there's excess movement coming from that?