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.

Newcomers DBPro Corner / error on rotate limb

Author
Message
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 8th Aug 2008 18:59
Rem Project: Car_Test
Rem Created: 8/7/2008 9:22:06 PM

Rem ***** Main Source File *****
load object "Hot Rod.x",1
do
if upkey()=1 then move object 1, 0.1
rem if upkey()=1 then move object 14, 0.1
if downkey()=1 then move object 1, -0.3
rem if downkey()=1 then move object 14, -0.3
if rightkey()=1 then turn object right 1,1
if leftkey()=1 then turn object left 1,1
set limb normals 1,6
hide limb 1,6
rotate limb 1,6,xangle
loop


Hi All

Can someone help me with this error I am getting. I am using the car from truespace 7.6. I can hide limb 1,6. that is the left front tire. When I try to rotate limb I get a bad object #.

Dennis W
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 8th Aug 2008 20:16
the sintax for rotate limb is :
Rotate Limb object n.,limb n.,xangle,yangle,zangle

I guess in your case it would be: Rotate Limb 1,6,xangle,0,0
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 10th Aug 2008 04:46
Thanks Scorpyo

That did it I got it working now.
Again Thanks for the help

Dennis W

Login to post a reply

Server time is: 2024-11-24 22:38:16
Your offset time is: 2024-11-24 22:38:16