Use precise 3d collisions in your GM game!
Since I have moved on to GMNewton and am no longer supporting this, why not some source?
http://host-a.net/ha...odModSource.zip
God bless,
-hanson
This is a dll I created to add 3d collision checking to GM games. It is based off of http://jgt.akpeters....r97/tritri.html by Tomas Moller. I also want to mention Hach-Que; his TriTriCollisions DLL got me started on this project. This DLL supersedes Hach-Que's TriTriCollisions DLL. It works best with low-poly models, so if you have a mesh with many polygons, create a different one with less polys to use as its collision model. The dll works fast enough if you keep your levels small, or add some optimizations. I have included a basic example to get you started. Please note that the physics are not the main focus of the example. If you use this in your project, please give credit to Samuel Hanson. Please let me know what you think!
Notice: Brett14 has improved on this project a ton! If you are looking for precise 3d collisions, I would recommend you check out his topic at http://gmc.yoyogames...howtopic=449508. It offers better speed and fixed bugs as compared to this.
Last update: March 8, 2008
Complete:
-load model
-check collision
-Rotations
-ray-model intersection detection.
-ray reflection
-example
-Primitives
---*block
---*cylinder
---*wall
---*floor
---*triangle
-Collision model replacing on the fly
-supports loading of 3 formats:
---*GM model format, must be triangulated
---*gml(must be formated correctly). Made to work with export from marzipan.
---*Separated format. Made to work with export from Marzipan
---*I encourage you to create scripts to import from more file formats. Please let me know if you create any that I can include in with the scripts
Planned:
Sorry - there are no planned updates at this time. My efforts are now directed toward GMNewton, which is a wrapper for a 3d physics engine. This is still available free to use though, and I love to see what you use it for.
Items in bold are in progress.
Screenshot:

__________________________________________________
____________________
I will keep this available for download for a time, though I highly recommend using Brett14's dll instead.
__________________________________________________
____________________
<span style='font-size:14pt;line-height:100%'>Download: Download ModMod7.2.zip </span> - updated 03/08/08
<span style='font-size:8pt;line-height:100%'>
OLD ModMod7.1
OLD - ModMod7
OLD - ModMod6</span>

Thanks for looking!
-hanson
Edited by hanson, 15 October 2009 - 11:43 PM.












