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 / Best way for collisions using .x files?

Author
Message
MPQC
15
Years of Service
User Offline
Joined: 7th Sep 2009
Location:
Posted: 16th Sep 2009 00:45
Well, I'm importing a .x file which contains my map. Now, what's the best way of setting collision to objects imported like this? Since it's not simply a box - I can't use "make object collision box." So how should I detect collision?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 16th Sep 2009 04:40 Edited at: 16th Sep 2009 04:41
I would look into Sparky's Collision DLL. It's very useful and works extremely well on .X objects. You could also look into polygon collision (SET OBJECT COLLISION TO POLYGONS and setting up a collision system from there), but I highly recommend Sparky's Collision DLL. There are numerous threads about it and it comes with example files.

You can get it here: http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5

<-- Spell based team dueling game!
MPQC
15
Years of Service
User Offline
Joined: 7th Sep 2009
Location:
Posted: 18th Sep 2009 03:04
Thanks. I've been fiddling with it, and I think I'm making some progress.

Login to post a reply

Server time is: 2024-11-24 01:47:10
Your offset time is: 2024-11-24 01:47:10