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.

Dark Physics & Dark A.I. & Dark Dynamix / problem with character controller

Author
Message
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 15th Aug 2006 00:36 Edited at: 15th Aug 2006 00:37
when i press the upkey my character moves down.

can someone tell me whats wrong with this code??

Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 15th Aug 2006 10:02
The default character controller has a pull on the Y axis to act as gravity. One way to alter it is to call "phy set character controller displacement ID, forward#, backward#" This command lets you adjust how much the character controller is displaced on the Y axis when moving forwards and backwards. If you called it as "phy set character controller displacement ID, 0.0, 0.0" then the Y position would remain unaffected.
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 15th Aug 2006 16:03
ok ill try that.thanks Mike!
JerBil
19
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 20th Aug 2006 01:10
Try this:


Ad Astra Per Asper
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 20th Aug 2006 03:02
oh,i see.

i think the step # has to be above 0.

thanks!
JerBil
19
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 20th Aug 2006 03:44
Also, the cube was in the floor, cause you had it at 0,3,0,
I changed it to 0,6,0 cause the cube is 5 in size. It is changed
at both cube position and controller position...

Ad Astra Per Asper

Login to post a reply

Server time is: 2024-04-24 20:05:56
Your offset time is: 2024-04-24 20:05:56