Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
collision
b2EdgeShape
Class b2EdgeShape
Hierarchy
b2Shape
b2EdgeShape
Index
Constructors
constructor
Properties
m_
has
Vertex0
m_
has
Vertex3
m_
radius
m_
type
m_
vertex0
m_
vertex1
m_
vertex2
m_
vertex3
ComputeAABB_
s_v1
ComputeAABB_
s_v2
Compute
Distance_
s_d
Compute
Distance_
s_s
Compute
Distance_
s_v1
Compute
Distance_
s_v2
Ray
Cast_
s_d
Ray
Cast_
s_e
Ray
Cast_
s_p1
Ray
Cast_
s_p2
Ray
Cast_
s_q
Ray
Cast_
s_r
Methods
Clone
ComputeAABB
Compute
Distance
Compute
Mass
Compute
Submerged
Area
Copy
Dump
Get
Child
Count
Get
Type
Ray
Cast
Set
Setup
Distance
Proxy
Test
Point
Constructors
constructor
new b2
Edge
Shape
(
)
:
b2EdgeShape
Returns
b2EdgeShape
Properties
m_
has
Vertex0
m_
has
Vertex0
:
boolean
= false
m_
has
Vertex3
m_
has
Vertex3
:
boolean
= false
m_
radius
m_
radius
:
number
= 0
Readonly
m_
type
m_
type
:
b2ShapeType
= b2ShapeType.e_unknown
Readonly
m_
vertex0
m_
vertex0
:
b2Vec2
= new b2Vec2()
Readonly
m_
vertex1
m_
vertex1
:
b2Vec2
= new b2Vec2()
Readonly
m_
vertex2
m_
vertex2
:
b2Vec2
= new b2Vec2()
Readonly
m_
vertex3
m_
vertex3
:
b2Vec2
= new 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_d
Compute
Distance_
s_d
:
b2Vec2
= new b2Vec2()
Static
Private
Compute
Distance_
s_s
Compute
Distance_
s_s
:
b2Vec2
= new b2Vec2()
Static
Private
Compute
Distance_
s_v1
Compute
Distance_
s_v1
:
b2Vec2
= new b2Vec2()
Static
Private
Compute
Distance_
s_v2
Compute
Distance_
s_v2
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_d
Ray
Cast_
s_d
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_e
Ray
Cast_
s_e
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_p1
Ray
Cast_
s_p1
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_p2
Ray
Cast_
s_p2
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_q
Ray
Cast_
s_q
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_r
Ray
Cast_
s_r
:
b2Vec2
= new b2Vec2()
Methods
Clone
Clone
(
)
:
b2EdgeShape
Returns
b2EdgeShape
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
:
b2EdgeShape
)
:
b2EdgeShape
Parameters
other:
b2EdgeShape
Returns
b2EdgeShape
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
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
Set
(
v1
:
XY
, v2
:
XY
)
:
b2EdgeShape
Parameters
v1:
XY
v2:
XY
Returns
b2EdgeShape
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
Globals
node_
modules\@cocos\box2d\src\collision
b2
Edge
Shape
constructor
m_
has
Vertex0
m_
has
Vertex3
m_
radius
m_
type
m_
vertex0
m_
vertex1
m_
vertex2
m_
vertex3
ComputeAABB_
s_v1
ComputeAABB_
s_v2
Compute
Distance_
s_d
Compute
Distance_
s_s
Compute
Distance_
s_v1
Compute
Distance_
s_v2
Ray
Cast_
s_d
Ray
Cast_
s_e
Ray
Cast_
s_p1
Ray
Cast_
s_p2
Ray
Cast_
s_q
Ray
Cast_
s_r
Clone
ComputeAABB
Compute
Distance
Compute
Mass
Compute
Submerged
Area
Copy
Dump
Get
Child
Count
Get
Type
Ray
Cast
Set
Setup
Distance
Proxy
Test
Point
Generated using
TypeDoc