- Home /
Question by
Griffo · Jul 30, 2012 at 12:39 PM ·
charactercontrollersize
Character Controller
Can you change the size of the character controller with script ? Without it resizing the child character ?
Comment
Best Answer
Answer by Griffo · Aug 01, 2012 at 09:28 AM
#pragma strict
private var character : CharacterController;
function Wake(){
}
function Start(){
character = GetComponent(CharacterController);
}
function Update(){
// Resize Character Controller
character.height = 1;
character.radius = 1;
character.center.x = 0;
character.center.y = 1.2;
character.center.z = 0;
}
Answer by markfrancombe · Aug 01, 2012 at 10:19 AM
Wow.. I have a related question... !
Can you change the size of the character controller with script ? WITH it resizing the child character ?
Im suddenly thinking of all sorts of Alice in Wonderland kind of puzzles involving Cake (The IS Cake is not a lie) and doors that are sometime s too big to get thru!!!
Mark
Your answer
![](https://koobas.hobune.stream/wayback/20220613074917im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Character Controller 2 Answers
Character Flying around uncontrollably 2 Answers
Prioritizing Player Animations 0 Answers
Click on an object and then edit the speed of my player? 1 Answer
Enemy Character Controller 1 Answer