Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
collision
b2DynamicTree
Class b2DynamicTree<T>
Type parameters
T
Hierarchy
b2DynamicTree
Index
Properties
m_
free
List
m_
insertion
Count
m_
path
m_
root
m_
stack
s_
aabb
s_
abs_
v
s_
combinedAABB
s_
node_
id
s_
r
s_
segmentAABB
s_
sub
Input
s_
v
Methods
Allocate
Node
Balance
Compute
Height
Create
Proxy
Destroy
Proxy
Free
Node
Get
Area
Ratio
Get
Height
Get
Max
Balance
Insert
Leaf
Move
Proxy
Query
Query
Point
Ray
Cast
Rebuild
Bottom
Up
Remove
Leaf
Shift
Origin
Validate
Validate
Metrics
Validate
Structure
Compute
Height
Node
Get
Area
Node
Get
Max
Balance
Node
Shift
Origin
Node
Properties
m_
free
List
m_
free
List
:
b2TreeNode
<
T
>
|
null
= null
m_
insertion
Count
m_
insertion
Count
:
number
= 0
m_
path
m_
path
:
number
= 0
m_
root
m_
root
:
b2TreeNode
<
T
>
|
null
= null
Readonly
m_
stack
m_
stack
:
b2GrowableStack
<
null
|
b2TreeNode
<
T
>
>
= new b2GrowableStack<b2TreeNode<T> | null>(256)
Static
Readonly
s_
aabb
s_
aabb
:
b2AABB
= new b2AABB()
Static
Readonly
s_
abs_
v
s_
abs_
v
:
b2Vec2
= new b2Vec2()
Static
Readonly
s_
combinedAABB
s_
combinedAABB
:
b2AABB
= new b2AABB()
Static
s_
node_
id
s_
node_
id
:
number
= 0
Static
Readonly
s_
r
s_
r
:
b2Vec2
= new b2Vec2()
Static
Readonly
s_
segmentAABB
s_
segmentAABB
:
b2AABB
= new b2AABB()
Static
Readonly
s_
sub
Input
s_
sub
Input
:
b2RayCastInput
= new b2RayCastInput()
Static
Readonly
s_
v
s_
v
:
b2Vec2
= new b2Vec2()
Methods
Allocate
Node
Allocate
Node
(
)
:
b2TreeNode
<
T
>
Returns
b2TreeNode
<
T
>
Balance
Balance
(
A
:
b2TreeNode
<
T
>
)
:
b2TreeNode
<
T
>
Parameters
A:
b2TreeNode
<
T
>
Returns
b2TreeNode
<
T
>
Compute
Height
Compute
Height
(
)
:
number
Returns
number
Create
Proxy
Create
Proxy
(
aabb
:
b2AABB
, userData
:
T
)
:
b2TreeNode
<
T
>
Parameters
aabb:
b2AABB
userData:
T
Returns
b2TreeNode
<
T
>
Destroy
Proxy
Destroy
Proxy
(
node
:
b2TreeNode
<
T
>
)
:
void
Parameters
node:
b2TreeNode
<
T
>
Returns
void
Free
Node
Free
Node
(
node
:
b2TreeNode
<
T
>
)
:
void
Parameters
node:
b2TreeNode
<
T
>
Returns
void
Get
Area
Ratio
Get
Area
Ratio
(
)
:
number
Returns
number
Get
Height
Get
Height
(
)
:
number
Returns
number
Get
Max
Balance
Get
Max
Balance
(
)
:
number
Returns
number
Insert
Leaf
Insert
Leaf
(
leaf
:
b2TreeNode
<
T
>
)
:
void
Parameters
leaf:
b2TreeNode
<
T
>
Returns
void
Move
Proxy
Move
Proxy
(
node
:
b2TreeNode
<
T
>
, aabb
:
b2AABB
, displacement
:
b2Vec2
)
:
boolean
Parameters
node:
b2TreeNode
<
T
>
aabb:
b2AABB
displacement:
b2Vec2
Returns
boolean
Query
Query
(
aabb
:
b2AABB
, callback
:
(
node
:
b2TreeNode
<
T
>
)
=>
boolean
)
:
void
Parameters
aabb:
b2AABB
callback:
(
node
:
b2TreeNode
<
T
>
)
=>
boolean
(
node
:
b2TreeNode
<
T
>
)
:
boolean
Parameters
node:
b2TreeNode
<
T
>
Returns
boolean
Returns
void
Query
Point
Query
Point
(
point
:
XY
, callback
:
(
node
:
b2TreeNode
<
T
>
)
=>
boolean
)
:
void
Parameters
point:
XY
callback:
(
node
:
b2TreeNode
<
T
>
)
=>
boolean
(
node
:
b2TreeNode
<
T
>
)
:
boolean
Parameters
node:
b2TreeNode
<
T
>
Returns
boolean
Returns
void
Ray
Cast
Ray
Cast
(
input
:
b2RayCastInput
, callback
:
(
input
:
b2RayCastInput
, node
:
b2TreeNode
<
T
>
)
=>
number
)
:
void
Parameters
input:
b2RayCastInput
callback:
(
input
:
b2RayCastInput
, node
:
b2TreeNode
<
T
>
)
=>
number
(
input
:
b2RayCastInput
, node
:
b2TreeNode
<
T
>
)
:
number
Parameters
input:
b2RayCastInput
node:
b2TreeNode
<
T
>
Returns
number
Returns
void
Rebuild
Bottom
Up
Rebuild
Bottom
Up
(
)
:
void
Returns
void
Remove
Leaf
Remove
Leaf
(
leaf
:
b2TreeNode
<
T
>
)
:
void
Parameters
leaf:
b2TreeNode
<
T
>
Returns
void
Shift
Origin
Shift
Origin
(
newOrigin
:
XY
)
:
void
Parameters
newOrigin:
XY
Returns
void
Validate
Validate
(
)
:
void
Returns
void
Validate
Metrics
Validate
Metrics
(
node
:
b2TreeNode
<
T
>
|
null
)
:
void
Parameters
node:
b2TreeNode
<
T
>
|
null
Returns
void
Validate
Structure
Validate
Structure
(
node
:
b2TreeNode
<
T
>
|
null
)
:
void
Parameters
node:
b2TreeNode
<
T
>
|
null
Returns
void
Static
Compute
Height
Node
Compute
Height
Node<T>
(
node
:
b2TreeNode
<
T
>
|
null
)
:
number
Type parameters
T
Parameters
node:
b2TreeNode
<
T
>
|
null
Returns
number
Static
Private
Get
Area
Node
Get
Area
Node<T>
(
node
:
b2TreeNode
<
T
>
|
null
)
:
number
Type parameters
T
Parameters
node:
b2TreeNode
<
T
>
|
null
Returns
number
Static
Private
Get
Max
Balance
Node
Get
Max
Balance
Node<T>
(
node
:
b2TreeNode
<
T
>
|
null
, maxBalance
:
number
)
:
number
Type parameters
T
Parameters
node:
b2TreeNode
<
T
>
|
null
maxBalance:
number
Returns
number
Static
Private
Shift
Origin
Node
Shift
Origin
Node<T>
(
node
:
b2TreeNode
<
T
>
|
null
, newOrigin
:
XY
)
:
void
Type parameters
T
Parameters
node:
b2TreeNode
<
T
>
|
null
newOrigin:
XY
Returns
void
Globals
node_
modules\@cocos\box2d\src\collision
b2
Dynamic
Tree
m_
free
List
m_
insertion
Count
m_
path
m_
root
m_
stack
s_
aabb
s_
abs_
v
s_
combinedAABB
s_
node_
id
s_
r
s_
segmentAABB
s_
sub
Input
s_
v
Allocate
Node
Balance
Compute
Height
Create
Proxy
Destroy
Proxy
Free
Node
Get
Area
Ratio
Get
Height
Get
Max
Balance
Insert
Leaf
Move
Proxy
Query
Query
Point
Ray
Cast
Rebuild
Bottom
Up
Remove
Leaf
Shift
Origin
Validate
Validate
Metrics
Validate
Structure
Compute
Height
Node
Get
Area
Node
Get
Max
Balance
Node
Shift
Origin
Node
Generated using
TypeDoc