Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
collision
b2ChainShape
Class b2ChainShape
Hierarchy
b2Shape
b2ChainShape
Index
Constructors
constructor
Properties
m_
count
m_
has
Next
Vertex
m_
has
Prev
Vertex
m_
next
Vertex
m_
prev
Vertex
m_
radius
m_
type
m_
vertices
ComputeAABB_
s_v1
ComputeAABB_
s_v2
Compute
Distance_
s_edge
Shape
Ray
Cast_
s_edge
Shape
Methods
Clone
ComputeAABB
Compute
Distance
Compute
Mass
Compute
Submerged
Area
Copy
Create
Chain
Create
Loop
Dump
Get
Child
Count
Get
Child
Edge
Get
Type
Ray
Cast
Set
Next
Vertex
Set
Prev
Vertex
Setup
Distance
Proxy
Test
Point
Create
Chain
Create
Loop
Constructors
constructor
new b2
Chain
Shape
(
)
:
b2ChainShape
Returns
b2ChainShape
Properties
m_
count
m_
count
:
number
= 0
m_
has
Next
Vertex
m_
has
Next
Vertex
:
boolean
= false
m_
has
Prev
Vertex
m_
has
Prev
Vertex
:
boolean
= false
Readonly
m_
next
Vertex
m_
next
Vertex
:
b2Vec2
= new b2Vec2()
Readonly
m_
prev
Vertex
m_
prev
Vertex
:
b2Vec2
= new b2Vec2()
m_
radius
m_
radius
:
number
= 0
Readonly
m_
type
m_
type
:
b2ShapeType
= b2ShapeType.e_unknown
m_
vertices
m_
vertices
:
b2Vec2
[]
= []
Static
Private
ComputeAABB_
s_v1
ComputeAABB_
s_v1
:
b2Vec2
= new b2Vec2()
Static
Private
ComputeAABB_
s_v2
ComputeAABB_
s_v2
:
b2Vec2
= new b2Vec2()
Static
Private
Compute
Distance_
s_edge
Shape
Compute
Distance_
s_edge
Shape
:
b2EdgeShape
= new b2EdgeShape()
Static
Private
Ray
Cast_
s_edge
Shape
Ray
Cast_
s_edge
Shape
:
b2EdgeShape
= new b2EdgeShape()
Methods
Clone
Clone
(
)
:
b2ChainShape
Returns
b2ChainShape
ComputeAABB
ComputeAABB
(
aabb
:
b2AABB
, xf
:
b2Transform
, childIndex
:
number
)
:
void
Parameters
aabb:
b2AABB
xf:
b2Transform
childIndex:
number
Returns
void
Compute
Distance
Compute
Distance
(
xf
:
b2Transform
, p
:
b2Vec2
, normal
:
b2Vec2
, childIndex
:
number
)
:
number
Parameters
xf:
b2Transform
p:
b2Vec2
normal:
b2Vec2
childIndex:
number
Returns
number
Compute
Mass
Compute
Mass
(
massData
:
b2MassData
, density
:
number
)
:
void
Parameters
massData:
b2MassData
density:
number
Returns
void
Compute
Submerged
Area
Compute
Submerged
Area
(
normal
:
b2Vec2
, offset
:
number
, xf
:
b2Transform
, c
:
b2Vec2
)
:
number
Parameters
normal:
b2Vec2
offset:
number
xf:
b2Transform
c:
b2Vec2
Returns
number
Copy
Copy
(
other
:
b2ChainShape
)
:
b2ChainShape
Parameters
other:
b2ChainShape
Returns
b2ChainShape
Create
Chain
Create
Chain
(
vertices
:
XY
[]
)
:
b2ChainShape
Create
Chain
(
vertices
:
XY
[]
, count
:
number
)
:
b2ChainShape
Create
Chain
(
vertices
:
number
[]
)
:
b2ChainShape
Parameters
vertices:
XY
[]
Returns
b2ChainShape
Parameters
vertices:
XY
[]
count:
number
Returns
b2ChainShape
Parameters
vertices:
number
[]
Returns
b2ChainShape
Create
Loop
Create
Loop
(
vertices
:
XY
[]
)
:
b2ChainShape
Create
Loop
(
vertices
:
XY
[]
, count
:
number
)
:
b2ChainShape
Create
Loop
(
vertices
:
number
[]
)
:
b2ChainShape
Parameters
vertices:
XY
[]
Returns
b2ChainShape
Parameters
vertices:
XY
[]
count:
number
Returns
b2ChainShape
Parameters
vertices:
number
[]
Returns
b2ChainShape
Dump
Dump
(
log
:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
)
:
void
Parameters
log:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
(
format
:
string
,
...
args
:
any
[]
)
:
void
Parameters
format:
string
Rest
...
args:
any
[]
Returns
void
Returns
void
Get
Child
Count
Get
Child
Count
(
)
:
number
Returns
number
Get
Child
Edge
Get
Child
Edge
(
edge
:
b2EdgeShape
, index
:
number
)
:
void
Parameters
edge:
b2EdgeShape
index:
number
Returns
void
Get
Type
Get
Type
(
)
:
b2ShapeType
Returns
b2ShapeType
Ray
Cast
Ray
Cast
(
output
:
b2RayCastOutput
, input
:
b2RayCastInput
, xf
:
b2Transform
, childIndex
:
number
)
:
boolean
Parameters
output:
b2RayCastOutput
input:
b2RayCastInput
xf:
b2Transform
childIndex:
number
Returns
boolean
Set
Next
Vertex
Set
Next
Vertex
(
nextVertex
:
XY
)
:
b2ChainShape
Parameters
nextVertex:
XY
Returns
b2ChainShape
Set
Prev
Vertex
Set
Prev
Vertex
(
prevVertex
:
XY
)
:
b2ChainShape
Parameters
prevVertex:
XY
Returns
b2ChainShape
Setup
Distance
Proxy
Setup
Distance
Proxy
(
proxy
:
b2DistanceProxy
, index
:
number
)
:
void
Parameters
proxy:
b2DistanceProxy
index:
number
Returns
void
Test
Point
Test
Point
(
xf
:
b2Transform
, p
:
XY
)
:
boolean
Parameters
xf:
b2Transform
p:
XY
Returns
boolean
Private
Create
Chain
Create
Chain
(
vertices
:
(
index
:
number
)
=>
XY
, count
:
number
)
:
b2ChainShape
Parameters
vertices:
(
index
:
number
)
=>
XY
(
index
:
number
)
:
XY
Parameters
index:
number
Returns
XY
count:
number
Returns
b2ChainShape
Private
Create
Loop
Create
Loop
(
vertices
:
(
index
:
number
)
=>
XY
, count
:
number
)
:
b2ChainShape
Parameters
vertices:
(
index
:
number
)
=>
XY
(
index
:
number
)
:
XY
Parameters
index:
number
Returns
XY
count:
number
Returns
b2ChainShape
Globals
node_
modules\@cocos\box2d\src\collision
b2
Chain
Shape
constructor
m_
count
m_
has
Next
Vertex
m_
has
Prev
Vertex
m_
next
Vertex
m_
prev
Vertex
m_
radius
m_
type
m_
vertices
ComputeAABB_
s_v1
ComputeAABB_
s_v2
Compute
Distance_
s_edge
Shape
Ray
Cast_
s_edge
Shape
Clone
ComputeAABB
Compute
Distance
Compute
Mass
Compute
Submerged
Area
Copy
Create
Chain
Create
Loop
Dump
Get
Child
Count
Get
Child
Edge
Get
Type
Ray
Cast
Set
Next
Vertex
Set
Prev
Vertex
Setup
Distance
Proxy
Test
Point
Create
Chain
Create
Loop
Generated using
TypeDoc