Hi all
i had opened the Beach buggy from the DB Phy demo, made a custom car in 3ds max with the same parts as the one from DB Phy, named the parts the same and centret the pivit point at all objects. exportet it out as a .x file.
so i used the original code from the demo project, just replacing the model to see if it works. it can load the model, but when a try to move it. it the wrong body parts the are moving.
anyone has a clue what im proberly doing wrong??
` demonstrates simple creation of a vehicle
` set up program
phy enable debug
phy start
autocam off
sync on
sync rate 60
color backdrop 0
make light 1
set directional light 1, -5, -5, 5
rem position camera -20, 20, -25
position camera 800, 2000, 2500
rem point camera 0, 10, 0
` create ground
load image "road2.png", 1
make object box 1, 1000, 1, 1000
texture object 1, 1
phy make rigid body static box 1
` load car
rem load object "beach.x", 2
load object "Cars.x", 2
rem load image "beachBu2.tga",2
rem load image "dbprocubemap.dds",3
rem texture object 2,2
rem set blend mapping on 2,1,3,2,16
rem position object 2, 15, 2, -25
rem rotate limb 2,0,0,0,0
` set up vehicle
phy create vehicle 2
rem phy add vehicle body 2, 2.2, 0.6, 0.75, 0.0, 0.6, 0.0
phy add vehicle body 2, 2.2, 0.6, 0.75, 0.0, 0.0, 0.0
rem phy add vehicle wheel 2, 5, 1.5, 0.3, 1.1, 0.6, 0.2, 0, 0
phy add vehicle wheel 2, 5, 1.5, 0.3, 1.1, 0.6, 0.2, 0, 0
rem phy add vehicle wheel 2, 9, 1.5, 0.3, -1.1, 0.6, 0.2, 0, 1
phy add vehicle wheel 2, 9, 1.5, 0.3, -1.1, 0.6, 0.2, 0, 1
rem phy add vehicle wheel 2, 5, -1.5, 0.3, -1.1, 0.6, 0.2, 1, 0
phy add vehicle wheel 2, 5, -1.5, 0.3, -1.1, 0.6, 0.2, 1, 0
rem phy add vehicle wheel 2, 7, -1.5, 0.3, 1.1, 0.6, 0.2, 1, 1
phy add vehicle wheel 2, 7, -1.5, 0.3, 1.1, 0.6, 0.2, 1, 1
phy set vehicle max motor 2, 200.0
phy set vehicle steering delta 2, 0.1
phy set vehicle max steering angle 2, 0.4
phy set vehicle auto 2, 1
phy set vehicle suspension spring 2,100
phy build vehicle 2
` display image
load image "logo.png", 100000
sprite 1, 0, 600 - 60, 100000
` main loop
do
` follow car
rem set camera to follow object position x ( 2 ), object position y ( 2 ), object position z ( 2 ), 0, 6, 4, 1, 0
set camera to follow object position x ( 2 ), object position y ( 2 ), object position z ( 2 ), 0, 150, 4, 1, 0
rem skal være camera
rem set camera to follow object position x ( 2 ), object position y ( 2 ), object position z ( 2 ), 0, 525, 225, 1, 0
` update physics and screen
phy update
sync
loop
thx.