Packageaway3d.physics
Classpublic class BSPCollider

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 : Number3D
BSPCollider
  maxClimbHeight : Number
The maximum height difference allowed to bridge when a collision is found, used for steps etc.
BSPCollider
  maxIterations : Number
BSPCollider
  minBounds : Number3D
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):Number3D
BSPCollider
Property detail
flyModeproperty
flyMode:Boolean  [read-write]Implementation
    public function get flyMode():Boolean
    public function set flyMode(value:Boolean):void
maxBoundsproperty 
maxBounds:Number3D  [read-write]Implementation
    public function get maxBounds():Number3D
    public function set maxBounds(value:Number3D):void
maxClimbHeightproperty 
maxClimbHeight:Number  [read-write]

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  [read-write]Implementation
    public function get maxIterations():Number
    public function set maxIterations(value:Number):void
minBoundsproperty 
minBounds:Number3D  [read-write]Implementation
    public function get minBounds():Number3D
    public function set minBounds(value:Number3D):void
onSolidGroundproperty 
onSolidGround:Boolean  [read-only]Implementation
    public function get onSolidGround():Boolean
stuckproperty 
stuck:Boolean  [read-write]Implementation
    public function get stuck():Boolean
    public function set stuck(value:Boolean):void
testMethodproperty 
testMethod:int  [read-write]Implementation
    public function get testMethod():int
    public function set testMethod(value:int):void
Constructor detail
BSPCollider()constructor
public function BSPCollider(object:Object3D, bspTree:BSPTree)Parameters
object:Object3D — The object that moves around in the world. This can be a Camera3D (FPS) or a Mesh
 
bspTree:BSPTree
Init Parameters
Method detail
move()method
public function move(x:Number, y:Number, z:Number):Number3D Parameters
x:Number
 
y:Number
 
z:Number

Returns
Number3D
Wiki link
Click to go to the wiki page for 'away3d.physics.BSPCollider'

Code examples

Comments