- Home /
2 circle colliders causing lag in player movement
Hello there, I am making a game where if you are in the range of a magnet, you get attracted to it. Attached to the player are 2 circle colliders: one is set as a trigger, which radius can increase or decrease to alter the magnet's range, and the other one isn't set as a trigger to allow it to rest on platforms. I am using this code: transform.Translate(3 * Time.deltaTime, 0, 0);
to move the player forward. The player movement is really laggy when it is touching the ground, but it is smoother when it is in the air. The camera movement is silky smooth once the project is exported, so I do not think that it is because I have a slow computer for only the player is laggy. Could someone help me solve this problem? Also it is important to note that when either circle collider is removed, the movement is smooth, so it isn't a problem with the code.
Your answer
Follow this Question
Related Questions
Large Colliders Hitting Terrain 0 Answers
Collisions... without colliders? :P 4 Answers
physics.OverlapSphere colliders 1 Answer
Collider doesn't work always 1 Answer
Overcoming Mesh Colliders (car falls through street) 1 Answer