Packageorg.rapidphysics.islands
Classpublic class PointLineIsland
InheritancePointLineIsland Inheritance Island Inheritance Object

An Island that solves collisions between moving points and fixed lines.



Public Properties
 PropertyDefined By
 InheritedcollisionsResolvedThisFrame : Number
[read-only]
Island
  lines : Vector.<RapidLine>
PointLineIsland
  points : Vector.<RapidPoint>
PointLineIsland
Protected Properties
 PropertyDefined By
 InheritedcollectCollisionsCount : Number
Island
 InheritedcollectCollisionsMax : Number = 15
A mechanism to prevent infinite loops.
Island
 Inheritedcollisions : RapidHeap
A collection of collisions sorted by time (very fast)
Island
 InheriteddoubleDict : Dictionary
Double dictionary of resolved collision times maps [obj1][obj2] => [time of latest collision resolution]
Island
 Inheritedm_collisionsResolvedThisFrame : Number
How many collisions resolved this frame.
Island
Public Methods
 MethodDefined By
  
PointLineIsland
 Inherited
solve():void
Solves all of the collisions in the island.
Island
Protected Methods
 MethodDefined By
 Inherited
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
 Inherited
Island
 Inherited
This is the core collision solving algorithm for all of RapidPhysics.
Island
Property Detail
linesproperty
public var lines:Vector.<RapidLine>

pointsproperty 
public var points:Vector.<RapidPoint>

Constructor Detail
PointLineIsland()Constructor
public function PointLineIsland()



Method Detail
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