Package | org.rapidphysics.islands |
Class | public class PointLineIsland |
Inheritance | PointLineIsland ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | collisionsResolvedThisFrame : Number [read-only] | Island | |
lines : Vector.<RapidLine> | PointLineIsland | ||
points : Vector.<RapidPoint> | PointLineIsland |
Method | Defined By | ||
---|---|---|---|
PointLineIsland | |||
![]() | solve():void
Solves all of the collisions in the island. | Island |
Method | Defined By | ||
---|---|---|---|
![]() | addCollision(c:Collision):void
Call this function in your implementation of collectCollisions()
| Island | |
collectCollisions(frameTime:Number):void [override]
This is an implementation of collectCollisions for points and lines
NOTE WELL: This implementation collides every point with every line, but it does NOT collide points with each other, or lines with each other
| PointLineIsland | ||
![]() | Island | ||
![]() | solveCollisions():void
This is the core collision solving algorithm for all of RapidPhysics. | Island |
lines | property |
public var lines:Vector.<RapidLine>
points | property |
public var points:Vector.<RapidPoint>
PointLineIsland | () | Constructor |
public function PointLineIsland()
collectCollisions | () | method |
override protected function collectCollisions(frameTime:Number):void
This is an implementation of collectCollisions for points and lines NOTE WELL: This implementation collides every point with every line, but it does NOT collide points with each other, or lines with each other
Parameters
frameTime:Number |