Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Broken_Code
9
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 15th Nov 2010 16:48
Can anyone enlighten me as to how we get a character controller to crouch?

I've tried using phy set character controller extents ID,radius,height
but it doesn't seem to change the height of the controller's collision box. Can anyone help shed some light on this?

Thanks,
Broken_Code
bergice
12
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 16th Nov 2010 20:14
I think you have to make 2 controllers (1 normal height, 1 crouch height) and have only 1 of them active. So when you press CTRL it will disable the normal height controller and position the crouch height controller at the player position.

51fa1db0ec7c4af52d93a6f5d0e86bc5

Broken_Code
9
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 17th Nov 2010 02:31
That's the conclusion I came to, is there really not a better way to do it? Some kind of scale function or something?

Thanks,
Broken_Code

Login to post a reply

Server time is: 2019-08-22 05:30:02
Your offset time is: 2019-08-22 05:30:02