06-09-2006, 12:30 AM
Thanks to Relsoft, Dr. D, and me putting myself in Geometry, I am able to release this library. Relsoft and Dr. D deserve all credit for teaching me collision detection
This library's uses pretty darn fast methods. The 2D physics AND Collision.bas goes around 7000 frames per second here.
Download (Source + Lib - 50kb), .rar: Geo Math Lib
Note: Was compiled under Windows XP. If you have trouble with it and it's not a lower than .16 issue, try compiling it yourself.
The Lib Supports the Following:
Type List:
Function List:
So what are you waiting for? Test and complain to me about it people:
Download (Source + Lib - 50kb), .rar: Geo Math Lib
This library's uses pretty darn fast methods. The 2D physics AND Collision.bas goes around 7000 frames per second here.
Download (Source + Lib - 50kb), .rar: Geo Math Lib
Note: Was compiled under Windows XP. If you have trouble with it and it's not a lower than .16 issue, try compiling it yourself.
The Lib Supports the Following:
- Tested on Version .16 Unstable, so no guarantees for you .15'ers
- 1D, 2D, and 3D Trigonometric Functions with Single Digit Precision
- Spherical Against Line Segment Collision Detection for All Dimensions Supported:Boundary Type is the value of which normal to use.Code:
Collision_Detection_Dimension(Boundary Type, Boundary Start, Boundary End, Object Position, Radius)
- Spherical Against Spherical Collision
- A ton of other stuff, really (function list below)
Type List:
- Geo_Vector
- Geo_Segment
- Geo_Collision_Type
- Enum: Geo_Option
Function List:
- Segment_Collision
- Object_Collision
- Triangle_Collision
- Closest_Point_On_Line
- Get_Angle
- Get_Cos_Angle
- Get_Distance
- Get_Dot_Product
- Get_Endpoint
- Get_Magnitude
- Get_MidPoint
- Get_Triangle_Perimeter
- Normalize_Vector
- Vector_Normal 'Normal between two vectors
So what are you waiting for? Test and complain to me about it people:
Download (Source + Lib - 50kb), .rar: Geo Math Lib