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 / Simple Basic Collision

Author
Message
MateiSoft Romania
11
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 2nd Jan 2014 01:12
Hello Comunity!

Does anyone knows how can i apply collision to a model imported(a character) to collide with the objects within the scene made in fps creator?

Thank you very much!

Alex Matei CEO
www.alexmatei.com
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Jan 2014 01:56
Sparkys collision plugin.

Search for it, download it, learn from it.

wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 2nd Jan 2014 03:20
Quote: "Sparkys collision plugin.

Search for it, download it, learn from it."

Please do this. I struggled for years with collision in dbpro because I glanced over sparky's once upon a time and thought it looked too complex. When I finally sat down and forced myself to use it it only took an hour or so, and it's far superior to the native commands.

New sig coming soon..
047
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 6th Jan 2014 20:55 Edited at: 6th Jan 2014 20:57
I've found that the collision command works perfectly with objects created using the native DBpro "make object box" or "make object sphere" command. In my experience DBPro detects collisions with boxes or spheres objects beautifully. So what I do is I make a box or sphere with the DBPro command the size of the 3d model I created using your preferred 3d modeling software and position it in the 3d model's position (or simply make it a limb so I don't have to worry about moving it when I move the 3d model). Then make the box/sphere invisible. Just make sure the box or sphere are created the size of he object. If you create the box/sphere a certain size and then try to scale it, DBPro will detect the collisions based on the original box/sphere size, not the scaled size. It took me a while to figure this out but now I use it and it works every time.
WickedX
16
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 6th Jan 2014 21:45 Edited at: 6th Jan 2014 22:55
As 047 states, native DBPro collisions functions work very well. I think it involves more understanding and effort than using Sparkys collision though. I have downloaded a few demo’s using Sparkys that I have found on this forum and converted them to native DBPro. The converted demo’s seem the function just as well. But, for simplicity I have to agree with the others and say get Sparkys.

Edit: You probable could use the same function your using for camera collision, on the object (static volume).

Login to post a reply

Server time is: 2025-05-16 06:05:53
Your offset time is: 2025-05-16 06:05:53