MOC - Minimal Ogre Collision 1.0 (Update 03.05.09) Link to the Video:
Hey everyone, since collision-detection seems to be an ongoing topic and people keep asking about simple collision and more accurate mousepicking we decided to pack our collision routines into a lightweight and easy to use mini-toolkit, named MOC - Minimal Ogre Collision.
MOC is based on the Ogre forum & wiki entries:http://www.ogre3d.org/phpBB2/viewtopic.php?t=23440http://www.ogre3d.org/wiki/index.php/Ra ... ygon_level
MOC does not aim to and is by no means able to be a replacement for the use of a full blown physics or collision library. It is rather a solution for situations where integrating a physics library would be a total overkill: like mousepicking in editor applications, quest & turn based rpgs, architectural presentations, quick prototypes, demos etc. Simply in all cases where you only need a basic collision-detection or picking and nothing else. Performance:
So far we could not detect a notable performance tax when using it. Looking at the demo - you can turn it off entirely pressing C and the FPS meter doesn't show a messurable difference. We had similar good results testing it in bigger scenarios with many more objects in the scene.Features:
- Simple accurate mousepicking on vertex level, means if you click on a mesh the mesh is only detected if you hit the actual mesh and not the bounding box.
- Simple collision detection, for example to prevent the camera from moving through walls, or enable walking and driving on objects like bridges, roadmeshes, etc.
- Supports ETM, TSM & Meshbased terrains
- Easy to setup and use. MOC only consist of 2 files CollisionTools.h + .cpp
- Open Source under the MIT license
allows to use it like you wish, commercial or non-commericalDownloads:
- MOC demo 1.0 beta - win32 demo,binaries, source and media
- MOC demo 1.0 beta - VC++ 2005 express project files, sources
- Latest - MOC toolkit source
- Latest - MMOC toolkit source for MOgreFuture Plans:
- Support for BSP
- Static GeometryRepository:
- MOC - Google CodeHomepage:
- MOC on www.artifexterra.com
Since this is not only my doing:
Thanks & credits to Wannabee who helped a lot with the implementation and Eliah for making the video.
Hopefully some of you find it useful