Category:SGSDK PHYSICS

The SGSDK_Graphics contains the essential routines needed to manipulate vectors, and to check collisions.


 * Collision related routines
 * HaveBitmapsCollided
 * HaveSpritesCollided
 * HasBitmapCollidedWithRect
 * HasSpriteCollidedWithBitmap
 * HasSpriteCollidedWithRect
 * HasSpriteCollidedX
 * HasSpriteCollidedY
 * CircleCollisionWithLine (New in version 1.1)
 * CircleHasCollidedWithLine (New in version 1.1)
 * RectangleHasCollidedWithLine (New in version 1.1)
 * CircularCollision (Renamed from VectorCollision in version 1.1)
 * VectorCollision (Renamed to CircularCollision in version 1.1)
 * CollisionWithinBitmapImages
 * Vector related routines
 * CreateVector
 * Magnitude
 * AddVectors
 * SubtractVectors
 * MultiplyVector
 * InvertVector
 * GetUnitVector
 * DotProduct
 * IsZeroVector
 * ChopVector (Removed in Version 1.1)
 * LimitMagnitude (Renamed from LimitVector in version 1.1)
 * LimitVector (Renamed to LimitMagnitude in version 1.1)
 * GetVectorFromAngle
 * CalculateAngleBetween (New in version 1.1)
 * CalculateVectorFromTo (New in version 1.1)
 * LineAsVector (New in version 1.1)
 * PointToVector (New in version 1.1)
 * VectorFromCenterSpriteToPoint (New in version 1.1)
 * VectorFromPointToRectangle (New in version 1.1)
 * VectorFromPoints (New in version 1.1)
 * VectorNormal (New in version 1.1)
 * VectorIsWithinRect (New in version 1.1)
 * Routines to get a vector to push out
 * VectorOutOfCircleFromCircle (New in version 1.1)
 * VectorOutOfCircleFromPoint (New in version 1.1)
 * VectorOutOfRectFromPoint (New in version 1.1)
 * VectorOutOfRectFromRect (New in version 1.1)
 * Matrix related routines
 * Multiply
 * RotationMatrix
 * ScaleMatrix
 * TranslationMatrix
 * Miscellaneous routines
 * CalculateAngle
 * IsSpriteOnScreenAt
 * LineNormal (New in version 1.1)
 * Types
 * Matrix2D
 * Enumeration
 * CollisionDetectionRange
 * CollisionSide