REM Project: CarDepot
REM Created: 02.07.2008 19:22:27
REM
REM ***** Main Source File *****
REM
phy start
sync on
sync rate 60
hide mouse
autocam off
load object "Car2.3DS",1
phy create vehicle 1
phy add vehicle body 1, 5, 10, 15, 0, 7, 0
phy add vehicle wheel 1, 1, -10, 5, 5,5,5, 0, 0
phy add vehicle wheel 1, 2, 10, 5, 5,5,5, 0, 0
phy add vehicle wheel 1, 3, -10, 5, 10,5,5, 1, 0
phy add vehicle wheel 1, 4, 10, 5, 10,5,5, 1, 0
phy build vehicle 1
make object box 2,500,5,500
position object 2,0,-100,0
phy make rigid body static box 2
position camera 100,-75,125
do
if upkey()=1 then phy set vehicle motor force 1,20
if downkey()=1 then phy set vehicle motor force 1,-10
if leftkey()=1 then phy set vehicle steering angle 1,-20
if rightkey()=1 then phy set vehicle steering angle 1,20
point camera object position x(1), object position y(1), object position z(1)
phy update
sync
loop
That is the code for the vehicle creation test, the creation of the vehicle is where i have problems.
Between make vehicle and build vehicle.
Programming Recorder: 3,0 months of dark basic