FlatRedBall.Math.Geometry.ICollidable

Introduction The ICollidable interface provides a standard collision implementation. Objects which implement ICollidable can collide with all FlatRedBall shapes and other ICollidables. The ICollidable interface requires a ShapeCollection property named Collision. FlatRedBall also offers the following extension methods for ICollidable: CollideAgainst – Simply returns true/false to indicate whether a collision has occured CollideAgainstMove – Returns[…]

FlatRedBall.Math.Geometry.Polygon.CollideAgainstMove

Introduction The CollideAgainstMove is a method which can be used to test whether two Shapes are touching, and if they are to move one or both so that they no longer overlap. CollideAgainstMove also works between all types of shapes. The CollideAgainstMove is a very common method used in games which include solid collision. Sometimes[…]