-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|156|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Collisions and Physics
Functions that help with accurate Sprite and Object collisions and better in game physics.

Older -->


Orientation of point vs line
Pakz (Monkey2)
Is a point left or center or right of a line
Polygon vs Polygon Collision
Pakz (Monkey2)
Is one polygon colliding with another polygon
Point versus Polygon Collision
Pakz (Monkey2)
Check if a point is inside a polygon
Water in 2d map
Pakz (Monkey)
See water flow/flood in a level.
Pixel Perfect Collision
melmantheman (Ruby, Cross Platform)
Helps to make pixel perfect(accurate down to a pixel) collisions using image RGB values and
Soft Body Physics
Scherererer (Blitz, Windows)
Simple demo of roughly how soft bodies work
Box/Circle collisions
Jayenkai (Blitz)
Really really simple bog standard collisions..
2D 'Shifted Grid' collision detection
LostUser (Blitz, Windows)
collision detection demo by big10p (A.K.A. Chris Chadwick) 2004.
Point In Polygon
Andy_A (Blitz)
Check if point is inside of polygon
MouseArea
LostUser (Blitz, Windows)
Uses rectsoverlap for mouse/object collision detection
3D Collisions
Scherererer (Blitz)
3D Collisions and detecting which object collided
Orbital Physics
shroom_monk (Blitz, Windows)
Continuous Freefall
Simple bouncing
magicman (Blitz)
Make stuff bounce, what else.

Older -->