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 / Collision Question

Author
Message
Browncow
17
Years of Service
User Offline
Joined: 3rd Nov 2006
Location:
Posted: 26th Nov 2006 01:47
I was wondering about collision. Is it possible I can make my model in Freeworld3d and then load it into DP and make the object hav collision? eg. set object collision on 1? Or are there many hard steps to this?
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 26th Nov 2006 09:43
The built in collision commands are slow and inefficient, and sometimes incorrect. The first thing you'll want to do is make sure you can get your model into on of these formats; .3ds, .x, .dbo (listed in order from least to best possibility).

Once you've got the model in that format, importing into darkbasic is as simple as using the LOAD OBJECT command with the file name of the model, along with an object number for the file.

After that, seeing as like I said using the built in collision commands is a bad idea, do a search for collision and check out some of the more popular threads. Sparky's collision dll is a free plugin for dark basic/dark basic pro that allows fast, efficient, polygonal collision detection, with features like sliding collision as well.

Login to post a reply

Server time is: 2024-09-25 13:32:59
Your offset time is: 2024-09-25 13:32:59