Fizz X
Posted: Sat Feb 04, 2012 6:31 am
Hi everybody, this is my small contribution to the Love2D community: a modified version of the collision detection lib Fizz.
Lib: FizzX
Licence: MIT License
Description:
Fizz is a lightweight collision library in Lua.
Fizz is designed specifically for old-school platformers and overhead action games.
Fizz supports three different shape types: circles, rectangles and line segments.
Note that rectangles are represented by a center point and half-width and half-height extents.
Rectangles are always axis-aligned and cannot have rotation.
Line segments are useful for making slopes and possibly "one-sided" platforms.
The direction of line segments affects how they handle collisions.
Line segments "push" other intersecting shapes at 90 degrees counter-clockwise of the segment slope.
In addition, there are three classes of shapes: static, kinematic and dynamic.
Static shapes are immobile and do not respond to collisions or gravity.
Static shapes can be used to represent walls and platforms in your game.
Kinematic shapes do not respond to collisions or gravity, but can be moved by manually changing their velocity.
Kinematic shapes can be used to simulate moving platforms and doors.
Dynamic shapes respond to collisions and gravity.
Dynamic shapes can be used to simulate the moving objects in your game.
Fizz uses quadtree partitioning to reduce the number of collision tests.
Partitioning can be disabled although this is not recommended especially if your simulation contains a large number of dynamic shapes.
Authors: Ivan & Taehl (original developer)
Repository and docs: https://github.com/2dengine/fizzx
Official support forum: http://2dengine.com/forum/
Version 10:
-improved collisions with slopes/line segments
-disabled partitioning
-mass and density support (wip)
Version 9:
-modified api
-refactored and optimized
-fizz.getDisplacement(shape)
-fixes some bugs with circle-rect and circle-circle
-fixes the damping
Version 8:
-new and improved implementation of line shapes
-various fixes
-updated to work with the latest version of Love2D
Possible Todo:
-looks like there are some bugs with the resolution for line shapes
-bounce and friction need testing
-mass
-sensor/ghost shapes
Lib: FizzX
Licence: MIT License
Description:
Fizz is a lightweight collision library in Lua.
Fizz is designed specifically for old-school platformers and overhead action games.
Fizz supports three different shape types: circles, rectangles and line segments.
Note that rectangles are represented by a center point and half-width and half-height extents.
Rectangles are always axis-aligned and cannot have rotation.
Line segments are useful for making slopes and possibly "one-sided" platforms.
The direction of line segments affects how they handle collisions.
Line segments "push" other intersecting shapes at 90 degrees counter-clockwise of the segment slope.
In addition, there are three classes of shapes: static, kinematic and dynamic.
Static shapes are immobile and do not respond to collisions or gravity.
Static shapes can be used to represent walls and platforms in your game.
Kinematic shapes do not respond to collisions or gravity, but can be moved by manually changing their velocity.
Kinematic shapes can be used to simulate moving platforms and doors.
Dynamic shapes respond to collisions and gravity.
Dynamic shapes can be used to simulate the moving objects in your game.
Fizz uses quadtree partitioning to reduce the number of collision tests.
Partitioning can be disabled although this is not recommended especially if your simulation contains a large number of dynamic shapes.
Authors: Ivan & Taehl (original developer)
Repository and docs: https://github.com/2dengine/fizzx
Official support forum: http://2dengine.com/forum/
Version 10:
-improved collisions with slopes/line segments
-disabled partitioning
-mass and density support (wip)
Version 9:
-modified api
-refactored and optimized
-fizz.getDisplacement(shape)
-fixes some bugs with circle-rect and circle-circle
-fixes the damping
Version 8:
-new and improved implementation of line shapes
-various fixes
-updated to work with the latest version of Love2D
Possible Todo:
-looks like there are some bugs with the resolution for line shapes
-bounce and friction need testing
-mass
-sensor/ghost shapes