- Home /
CharacterController Floats
I am trying to build my own 2d controller, with a CharacterController GameObject. At this point it is just a cube with the CharacterController and two smaller cubes on the front, as hands. Later I intend to put a full 3d model in its place. The problem is the Cube/Player is floating a few pixels off the ground. I try to move it and it returns to its position. I have tried to adjust the skin thickness, but then it overlaps with other objects such as the planes i use for boarders. I believe it comes down to the capsule collider that is brought on with the CharacterController. Any thoughts on how to bring my player back down?
Answer by Bovine · Jul 24, 2012 at 09:19 PM
Select your FPS controller and on the CharacterController component you can edit the Radius, Height and Object Centre. As you've seen, there's the skin width as well. You should be able to see the controller's collider change size, shape and position relative to the GameObject as you adjust the settings.
I suspect you need to set the radius to half the width of your cube and the height to twice the radius and then adjust the Y so that it's in the centre.
Hope that helps.
Did what you said and actually had to adjust the Y so it wasn't centered which is odd, but otherwise it worked. Thank you very much.
Bovine please tell me how I can change the material of Capsule Collider hidden in FPS. Please answer here
Your answer
Follow this Question
Related Questions
Why do CharacterController objects not come in different collision shapes? 0 Answers
Applying Physic Material In Capsule Collider Hidden In FPS CharacterControl 1 Answer
Getting Character controller to fit model? 0 Answers
Why is my push rigidbody script not effected by mass? 2 Answers
Touch joystick tutorials ? 0 Answers