FlatRedBall.Math.Geometry.Line
The LastCollisionPoint is a property which can tell you the last location where collision occurred. This can be used if you would like to play effects or perform custom physics where collision has occurred.
The following example creates two Lines and calls CollideAgainst between them. It then uses the LastCollisionPoint (if it is valid) to position a circle. One of the lines (Line1) can be controlled with the keyboard, resulting in a changing LastColliisionPoint.
This example is structured for Glue, but can be duplicated in a code-only FlatRedBall project:
Add the following to class scope in a Screen:
Add the following to CustomInitialize in a Screen:
Add the following to CustomActivity in a Screen: