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.

Dark GDK / Problem Rotating wheels of a vehicle

Author
Message
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 10th Nov 2009 17:40
I am working on a car project and right now everything looks good but I cannot make the wheels of the car to move. The models I am using came with dark gdk in the game creators folder.

It is a .x file and when I open the file it shows the vehicle rotating the wheels but for some reason when I imported to my code it doesnt move at all.

How can I make 'em rotate??

Any help will be appreciate it.

Thanks in advance
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 10th Nov 2009 21:35
have you called dbPlayObject (i think that's the name of it) you need to call a function to make the animation play. its in the help file, something like playObject, playAnimation, something.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 10th Nov 2009 22:53
These are the only two I could find, but when I am using it, it does not play the motion of the wheel maybe I am doing something wrong.

Please tell me how to use this functions.

dbPlayObject : void dbPlayObject ( int iObject )
&
dbObjectPlaying : int dbObjectPlaying ( int iObject )

Thanks in advance
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Nov 2009 23:21
using preform check limb, find how many the car has then work out which ones to rotate.

Dark Physics makes any hot drink go cold.
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 10th Nov 2009 23:42
Now I have the info so how can I make it work.

How can I use that info for my benefit.

Thanks in advance

Attached is a Picture of the information I got.

Attachments

Login to view attachments
CokeBoi
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 11th Nov 2009 08:25
Well, there are limbs for all four wheels...

LOL
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Nov 2009 13:38
limbs numbers 5, 7, 3, 9

so it will be something like this

ROTATE LIMB Object Number, Limb Number, XAngle, YAngle, ZAngle
so would like
ROTATE LIMB 1, 5, 0,wrapvalue(limb angle(1,5)+1),0

change the above to work in gdk as this how I would do it in basic.

Dark Physics makes any hot drink go cold.
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 11th Nov 2009 16:50
Thanks so much 3D Master for helping me out. I finally make it work.

For reference just in case somebody wants to know the exact commands I use.

dbRotateLimb : void dbRotateLimb ( int iObject, int iLimb, float fX, float fY, float fZ )

Here it comes:

float Limb4Xbr = 15.0f;

Limb4Xbr = Limb4Xbr + 10;
dbRotateLimb (4, 5, Limb4Xbr, 0.0f, 0.0f);

This is only for the back right wheel of the vehicle then it is just a matter of repeating it to the other wheels.

Again thanks so much " 3DMaster " for your help and your knowledge. I really appreciated it
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Nov 2009 20:44 Edited at: 11th Nov 2009 20:47
Your welcome.

Only know how to do the above working with DarkPhysX.


By the way the forum name is Howdo , 3D Master is a title you can have for a month, you can win it in 3 Dimensional Chat forum making models.

So if you think you might be able to do something pop in and have a look.

link to compo

Dark Physics makes any hot drink go cold.
DnB
15
Years of Service
User Offline
Joined: 28th Feb 2009
Location:
Posted: 28th Dec 2009 18:54
I noticed the 4x4's wheels rotate good at frames 5-25. So I use

And to control how fast the wheels move I do

Login to post a reply

Server time is: 2024-10-01 20:23:23
Your offset time is: 2024-10-01 20:23:23