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 / character controller question

Author
Message
White knight
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location:
Posted: 7th Apr 2007 03:49
ok i'm tring to get my human model to set on the floor it works with box but as for human models they won't sit on the floor i scaled it to 100 and it works with the box but it won't work with the human model
this is a little bit of my character code
load object "adultf\afdefaultbdy\default.X", 3
position object 3,50,60,100
scale object 3,500,500,500
phy make rigid body dynamic box 3
phy make box character controller 3, 100, 15, 100, 500/2, 500/2, 500/2, 1, 2, 50.0
i can't get it to stay on the floor like it's supposed to
now this works fine
make object box 3,2,4,2
position object 3,50,60,100
scale object 3,500,500,500
phy make box character controller 3, 100, 15, 100, 2/2, 4/2, 2/2, 1, 2, 50.0

new learning center comming soon http://911.bounceme.net/
JerBil
19
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 8th Apr 2007 05:34
Don't know if it will help, but I think the character controller
should have the same position as your model when created (50,60,100)

Ad Astra Per Asper
White knight
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location:
Posted: 8th Apr 2007 07:14 Edited at: 8th Apr 2007 07:19
i got it fixed it now works right i set the y size to .01 and it works fine now thanx anyhow the sizes are dif from box and the model
this works
load object "adultfafdefaultbdydefault.X", 3
position object 3,50,60,100
scale object 3,500,500,500
phy make rigid body dynamic box 3
phy make box character controller 80, 10, 5, 100, 2/2, .01/2, 2/2, 1, 1.5, 80.0
it didn't let me use 0 or 1 but let me use .01 and works fine
i also fixed the code to let the model walk up a set of modeled stairs correctly

new learning center comming soon http://911.bounceme.net/

Login to post a reply

Server time is: 2024-04-23 12:04:21
Your offset time is: 2024-04-23 12:04:21