Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
collision
b2CircleShape
Class b2CircleShape
Hierarchy
b2Shape
b2CircleShape
Index
Constructors
constructor
Properties
m_
p
m_
radius
m_
type
ComputeAABB_
s_p
Compute
Distance_
s_center
Ray
Cast_
s_position
Ray
Cast_
s_r
Ray
Cast_
s_s
Test
Point_
s_center
Test
Point_
s_d
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
newb2
Circle
Shape
(
radius
?:
number
)
:
b2CircleShape
Parameters
Default value
radius:
number
= 0
Returns
b2CircleShape
Properties
Readonly
m_
p
m_
p
:
b2Vec2
= new b2Vec2()
m_
radius
m_
radius
:
number
= 0
Readonly
m_
type
m_
type
:
b2ShapeType
= b2ShapeType.e_unknown
Static
Private
ComputeAABB_
s_p
ComputeAABB_
s_p
:
b2Vec2
= new b2Vec2()
Static
Private
Compute
Distance_
s_center
Compute
Distance_
s_center
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_position
Ray
Cast_
s_position
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_r
Ray
Cast_
s_r
:
b2Vec2
= new b2Vec2()
Static
Private
Ray
Cast_
s_s
Ray
Cast_
s_s
:
b2Vec2
= new b2Vec2()
Static
Private
Test
Point_
s_center
Test
Point_
s_center
:
b2Vec2
= new b2Vec2()
Static
Private
Test
Point_
s_d
Test
Point_
s_d
:
b2Vec2
= new b2Vec2()
Methods
Clone
Clone
(
)
:
b2CircleShape
Returns
b2CircleShape
ComputeAABB
ComputeAABB
(
aabb
:
b2AABB
, transform
:
b2Transform
, childIndex
:
number
)
:
void
Parameters
aabb:
b2AABB
transform:
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
:
b2CircleShape
)
:
b2CircleShape
Parameters
other:
b2CircleShape
Returns
b2CircleShape
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
, transform
:
b2Transform
, childIndex
:
number
)
:
boolean
Parameters
output:
b2RayCastOutput
input:
b2RayCastInput
transform:
b2Transform
childIndex:
number
Returns
boolean
Set
Set
(
position
:
XY
, radius
?:
number
)
:
this
Parameters
position:
XY
Default value
radius:
number
= this.m_radius
Returns
this
Setup
Distance
Proxy
Setup
Distance
Proxy
(
proxy
:
b2DistanceProxy
, index
:
number
)
:
void
Parameters
proxy:
b2DistanceProxy
index:
number
Returns
void
Test
Point
Test
Point
(
transform
:
b2Transform
, p
:
XY
)
:
boolean
Parameters
transform:
b2Transform
p:
XY
Returns
boolean
Globals
node_
modules\@cocos\box2d\src\collision
b2
Circle
Shape
constructor
m_
p
m_
radius
m_
type
ComputeAABB_
s_p
Compute
Distance_
s_center
Ray
Cast_
s_position
Ray
Cast_
s_r
Ray
Cast_
s_s
Test
Point_
s_center
Test
Point_
s_d
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