Hello, my vehicle turn vertically instead of the wheel, can you say me why please ?
Thanks
EDIT : Full Code
REM DRIVE GAME
REM Auteur : Hell_666
REM Objects Numbers
REM 1-100 = véhicules, divers props dynamiques possibles
REM 100-200 = Terrains, divers props statiques possibles
rem Variables de numbers
PlrObj = 1
RaceObj = 101
BumpPlr = 1
rem Affichage, initialisation
set display mode 1024, 768, 32
phy start
phy set gravity 0,-9.8,0
rem Chargement des shaders et autre effet
load image "Vehicles\PlrCar_NRM.dds", BumpPlr
rem Chargement
`gosub _Load_Terrain
gosub _Load_Vehicle
rem Debug
Make object plain 666, 1000, 1000
xrotate object 666,90
position object 666, object position x(PlrObj), object position y(PlrObj)-100, object position z(PlrObj)
phy make rigid body static box 666
do
rem control camera
gosub _Control_Camera
if upkey() then phy set vehicle motor force PlrObj, 1
phy update
sync
loop
REM Charger le terrain
_Load_Terrain:
load static objects "Maps\Race.dbo", 0
`phy make rigid body static terrain RaceObj
return
REM Charger le véhicule
_Load_Vehicle:
load object "Vehicles\PlrCar.x", PlrObj
set bump mapping on PlrObj, BumpPlr
set object light PlrObj, 1
phy create vehicle PlrObj
phy add vehicle body PlrObj, object size x(PlrObj), object size y(PlrObj), object size z(PlrObj), object position x(PlrObj), object position y(PlrObj), object position z(PlrObj)
phy add vehicle wheel PlrObj, 3, limb position x(PlrObj, 3), limb position y(PlrObj, 3), limb position z(PlrObj, 3), 40, 0, 0, 0
phy add vehicle wheel PlrObj, 4, limb position x(PlrObj, 4), limb position y(PlrObj, 4), limb position z(PlrObj, 4), 40, 0, 0, 0
phy add vehicle wheel PlrObj, 5, limb position x(PlrObj, 5), limb position y(PlrObj, 5), limb position z(PlrObj, 5), 40, 0, 1, 0
phy add vehicle wheel PlrObj, 6, limb position x(PlrObj, 6), limb position y(PlrObj, 6), limb position z(PlrObj, 6), 40, 0, 1, 0
phy set vehicle mass PlrObj, 50
phy set vehicle static friction PlrObj, 50
phy build vehicle PlrObj
return
REM Control Camera
_Control_Camera:
set camera to follow object position x(PlrObj), object position y(PlrObj), object position z(PlrObj), object angle y(PlrObj), 250, object size y(PlrObj), 100, 0
return
Eternal suffering ...
I'm french