Hum I found something that can help me
The FPS exemple project that come with Dark Physics, I am working on it. I will post the result here. Hope it will help beginner to be able to do collision, cause it is hard without Dark Physics.
What I can tell now is to look into the help file that come with Dark Physics. Then go under tutorial, Character controler.
Right now this is what I got as code. But it is stock in the floor or what?
``Mon premier prgramme que je load une map, c'était pour tester les .x
Set Display mode 800,600, 32
cls
Autocam off
Phy start:Sync Rate 60
Sync on
`load object "C:\Program Files\DeleD LITE\X Files\allo.x",1
load object "C:\Program Files\DeleD LITE\Map Files\chateau.x" ,1
phy make rigid body static mesh 1 `` toute la map devien un collision
` create our box controller (c'est une boîte autour du personnage pour
make object box 3, 20, 50, 20
phy make box character controller 3, 434, 42, -517, 10, 35, 10, 1, 10.5, 45.0
hide object 3
Position camera 50,50,50
Point camera 0,0,0
Make light 1
Position Light 1,0,30,0
Do
``control camera using arrowkeys 0, 20, 8
`Pour bouger le character, car maintenant il appartien à PHY et plus à DBP donc control camera using arrowkeys 0, 20, 8 ne fera aucune collision
`If downkey()=1 then Pitch object Down 1,1
`If upkey()=1 then Pitch object up 1,1
`If leftkey()=1 then turn object Left 1,1
`If rightkey()=1 then turn object Right 1,1
`` Va faire avancer le character controler (la nouvelle boîte)
key = 0 `` Va mettre la valeur 0
if upkey ( )
key = 1
phy move character controller 3, 200.0
endif
if downkey ( )
key = 1
phy move character controller 3, -200.0
endif
if key = 0
phy move character controller 3, 0.0
endif
` update the simulation and screen
phy update
sync
loop
When it is too complicated it is because you are trying at the wrong door.