View Single Post
Collision detection engine
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default Collision detection engine - 02-26-2010, 10:45 PM

Welcome to the collision engine! Please feel free to use this in your games, as long as you give me credit!

Required Sections:
  • Collision method, and event calling it.
  • World variables.
  • All objects referenced to by the objects list.
  • A cylinder named "cylinder".
Known Bugs:
  • Main cylinder hovers. Fixed as of 1.1.
  • Cylinder might re-size erratically. Can be fixed by putting cylinders closer together.
  • Main cylinder appears to vibrate while against a wall. This is the location being corrected. It can be reduced by putting cylinders closer together.
Todo:
  • Add support for different types of obstacles. (i.e. squares, spheres, etc.)
  • Less memory intensive methods. This is to leave more memory with other methods.
  • Get a balanced time and distance for collision data setting. This will help to reduce vibration on the main cylinder, while hopefully not running the method too much. It is memory intensive to check every object!
Recommendations:
  • The objects that you collide with can be invisible! Use Other objects for visuals, and leave the work to the cylinders!
  • The program fixes collision data every quarter second. Setting the world variable "break" will override this, and cause the data to be refreshed immediately. This is good for when you change scenes.
Current Version:
Collision detection 1.3.a2w

Current Engine(No other stuff):
Collision Engine 1.4.a2w

Last edited by zonedabone; 03-18-2010 at 03:42 PM.
   
Reply With Quote