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.

DarkBASIC Professional Discussion / Learning about limbs ..

Author
Message
Frans
17
Years of Service
User Offline
Joined: 12th Sep 2008
Location: Netherlands
Posted: 15th Mar 2010 23:27
Hi,

To connect say a wheel to a car, so it can rotate but stays connected to the car, must I:

1 - make a mesh outoff the car-object and add the wheel as a limb

or

2 - make the connection in the 3d-modeller ?

Thanks for any help.

Frans
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Mar 2010 14:19
Actually you can do it either way. I'd just try both ways and see what works best for you!

A third option is to just manually update the wheel position/rotation every loop.

EXAMPLE:


...then all you need to do is keep track of the wheels rotation so you can set it each loop!

Hope that helps!


baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Mar 2010 18:26 Edited at: 19th Mar 2010 18:27
I'm posting this as a new message because I don't receive notification when someone just edits their post (bug?)...

Anyway I have another option for you! I got thinking about this problem and spent far too long playing with a solution...

Attached is the start of some code for a vehicle system (cars only at this stage). You'll need Sparky's collision dll and maybe cloggy's d3d (unless you just delete "d3d_" where I used it to make the ground texture) but other than that it's all DBP.

If you have any problems let me know but I don't know if I'll be using this code anymore anyway for a while!

I have plans to finish it off at some point but it's fun to play with the settings as it is!

Enjoy!

EDIT: Forgot to say how I did it!! It's using "Glue Object To Limb"...

Frans
17
Years of Service
User Offline
Joined: 12th Sep 2008
Location: Netherlands
Posted: 25th Mar 2010 12:52
Dear Baxslash,

It's a shame you didn't receive a reply from me up until now.
You know, live turned it's back to me in different ways.
First my PC became victim of a major virus attack, so I had to recover the whole thing.
On top of that things happened in my personal life that needed my full attention.

I most certainly am thankfull for your replies to my post!

Now everything is kind of back to normal, I wanted to let you know that I am picking up on the info you send me.

Best regards and thanks again.

Frans
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th Mar 2010 13:05
Glad to hear things are back to normal (though they never stay that way!) hope all is well with you now!

If you have any problems with my code just let me know. The "glue to limb" system I came up with works pretty good!

Frans
17
Years of Service
User Offline
Joined: 12th Sep 2008
Location: Netherlands
Posted: 25th Mar 2010 13:10
Thanks
Frans
17
Years of Service
User Offline
Joined: 12th Sep 2008
Location: Netherlands
Posted: 25th Mar 2010 18:20
Baxslash,

I 'installed' Sparky's collision.dll to be able to learn from your replies.

My problem with the help:

I put Collision.htm and Collision folder in: DBP\help\commands
and have key-word-highlighting working ok.

But finding all the new commands from within the IDE is still a bit of a struggle for me.

Sparky wrote with his download-link:

I've had this sitting around for a while now, with the posibility of including it as core commands in DBPro.
But in order to preserve legacy code, and avoid the complexity of adding it in, it's being released as a seperate TPC DLL.

My English is not good enough to realy understand his statement.

All the above because I don't find a link to his commands in the DBP F1-Main menu \ commands.

I can only find the SC-commands-help by entering a correct new SC-command and the do a F1 on it.

Hopefully this is not too much off a disturbance for you.

Frans
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th Mar 2010 18:38
In the folder "...\Dark Basic Professional Online\Help" you should have a file called "Collision.htm". This is the 'starting point' for the help files.

I don't use the F1 key as most of the plugins I use are not 'plugged in' to the Help in the IDE so I normally keep the Help folder open on my desktop when I'm working...

Hope that helps!

Frans
17
Years of Service
User Offline
Joined: 12th Sep 2008
Location: Netherlands
Posted: 25th Mar 2010 18:45
I see, thank you

Login to post a reply

Server time is: 2026-07-26 23:40:34
Your offset time is: 2026-07-26 23:40:34