Packageaway3d.physics
Classpublic class BSPCollider
InheritanceBSPCollider Inheritance Object

BSPCollider manages an object to move around in a BSPTree while doing collision detection. This can be used to create FPS-style navigation.



Public Properties
 PropertyDefined By
  flyMode : Boolean
BSPCollider
  maxBounds : Vector3D
BSPCollider
  maxClimbHeight : Number
The maximum height difference allowed to bridge when a collision is found, used for steps etc.
BSPCollider
  maxIterations : Number
BSPCollider
  minBounds : Vector3D
BSPCollider
  onSolidGround : Boolean
[read-only]
BSPCollider
  stuck : Boolean
BSPCollider
  testMethod : int
BSPCollider
Public Methods
 MethodDefined By
  
BSPCollider(object:Object3D, bspTree:BSPTree)
Creates a BSPCollider object.
BSPCollider
  
move(x:Number, y:Number, z:Number):Vector3D
BSPCollider
Property Detail
flyModeproperty
flyMode:Boolean


Implementation
    public function get flyMode():Boolean
    public function set flyMode(value:Boolean):void
maxBoundsproperty 
maxBounds:Vector3D


Implementation
    public function get maxBounds():Vector3D
    public function set maxBounds(value:Vector3D):void
maxClimbHeightproperty 
maxClimbHeight:Number

The maximum height difference allowed to bridge when a collision is found, used for steps etc. Only used when calling move with flyMode set to true.


Implementation
    public function get maxClimbHeight():Number
    public function set maxClimbHeight(value:Number):void
maxIterationsproperty 
maxIterations:Number


Implementation
    public function get maxIterations():Number
    public function set maxIterations(value:Number):void
minBoundsproperty 
minBounds:Vector3D


Implementation
    public function get minBounds():Vector3D
    public function set minBounds(value:Vector3D):void
onSolidGroundproperty 
onSolidGround:Boolean  [read-only]


Implementation
    public function get onSolidGround():Boolean
stuckproperty 
stuck:Boolean


Implementation
    public function get stuck():Boolean
    public function set stuck(value:Boolean):void
testMethodproperty 
testMethod:int


Implementation
    public function get testMethod():int
    public function set testMethod(value:int):void
Constructor Detail
BSPCollider()Constructor
public function BSPCollider(object:Object3D, bspTree:BSPTree)

Creates a BSPCollider object.

Parameters
object:Object3D — The object that moves around in the world. This can be a Camera3D (FPS) or a Mesh
 
bspTree:BSPTree
####INIT####
Method Detail
move()method
public function move(x:Number, y:Number, z:Number):Vector3D

Parameters

x:Number
 
y:Number
 
z:Number

Returns
Vector3D