Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.0 Preview
Version: 3.1
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
physics2d
box2d
PhysicsDebugDraw
Class PhysicsDebugDraw
Hierarchy
b2Draw
PhysicsDebugDraw
Index
Constructors
constructor
Properties
_drawer
_dxf
_xf
m_
draw
Flags
Methods
Append
Flags
Clear
Flags
Draw
Circle
Draw
Particles
Draw
Point
Draw
Polygon
Draw
Segment
Draw
Solid
Circle
Draw
Solid
Polygon
Draw
Transform
Get
Flags
Pop
Transform
Push
Transform
Set
Flags
Draw
Circle
Draw
Polygon
apply
Fill
Color
apply
Stroke
Color
Constructors
constructor
new
Physics
Debug
Draw
(
drawer
:
Graphics
)
:
PhysicsDebugDraw
Parameters
drawer:
Graphics
Returns
PhysicsDebugDraw
Properties
_drawer
_drawer
:
Graphics
|
null
= null
_dxf
_dxf
:
b2Transform
= new b2.Transform()
_xf
_xf
:
b2Transform
= new b2.Transform()
m_
draw
Flags
m_
draw
Flags
:
b2DrawFlags
= 0
Methods
Append
Flags
Append
Flags
(
flags
:
b2DrawFlags
)
:
void
Parameters
flags:
b2DrawFlags
Returns
void
Clear
Flags
Clear
Flags
(
flags
:
b2DrawFlags
)
:
void
Parameters
flags:
b2DrawFlags
Returns
void
Draw
Circle
Draw
Circle
(
center
:
b2.Vec2
, radius
:
number
, color
:
any
)
:
void
Parameters
center:
b2.Vec2
radius:
number
color:
any
Returns
void
Draw
Particles
Draw
Particles
(
)
:
void
Returns
void
Draw
Point
Draw
Point
(
center
:
any
, radius
:
any
, color
:
any
)
:
void
Parameters
center:
any
radius:
any
color:
any
Returns
void
Draw
Polygon
Draw
Polygon
(
vertices
:
any
, vertexCount
:
any
, color
:
any
)
:
void
Parameters
vertices:
any
vertexCount:
any
color:
any
Returns
void
Draw
Segment
Draw
Segment
(
p1
:
b2.Vec2
, p2
:
b2.Vec2
, color
:
any
)
:
void
Parameters
p1:
b2.Vec2
p2:
b2.Vec2
color:
any
Returns
void
Draw
Solid
Circle
Draw
Solid
Circle
(
center
:
b2.Vec2
, radius
:
number
, axis
:
any
, color
:
any
)
:
void
Parameters
center:
b2.Vec2
radius:
number
axis:
any
color:
any
Returns
void
Draw
Solid
Polygon
Draw
Solid
Polygon
(
vertices
:
any
, vertexCount
:
any
, color
:
any
)
:
void
Parameters
vertices:
any
vertexCount:
any
color:
any
Returns
void
Draw
Transform
Draw
Transform
(
xf
:
b2.Transform
)
:
void
Parameters
xf:
b2.Transform
Returns
void
Get
Flags
Get
Flags
(
)
:
b2DrawFlags
Returns
b2DrawFlags
Pop
Transform
Pop
Transform
(
)
:
void
Returns
void
Push
Transform
Push
Transform
(
xf
:
any
)
:
void
Parameters
xf:
any
Returns
void
Set
Flags
Set
Flags
(
flags
:
b2DrawFlags
)
:
void
Parameters
flags:
b2DrawFlags
Returns
void
Draw
Circle
Draw
Circle
(
center
:
b2.Vec2
, radius
:
number
)
:
void
Parameters
center:
b2.Vec2
radius:
number
Returns
void
Draw
Polygon
Draw
Polygon
(
vertices
:
any
, vertexCount
:
any
)
:
void
Parameters
vertices:
any
vertexCount:
any
Returns
void
apply
Fill
Color
apply
Fill
Color
(
color
:
any
)
:
void
Parameters
color:
any
Returns
void
apply
Stroke
Color
apply
Stroke
Color
(
color
:
any
)
:
void
Parameters
color:
any
Returns
void
Globals
physics2d
box2d
Manifold
Point
PhysicsAABBQuery
Callback
Physics
Contact
Physics
Contact
Listener
Physics
Debug
Draw
constructor
_drawer
_dxf
_xf
m_
draw
Flags
Append
Flags
Clear
Flags
Draw
Circle
Draw
Particles
Draw
Point
Draw
Polygon
Draw
Segment
Draw
Solid
Circle
Draw
Solid
Polygon
Draw
Transform
Get
Flags
Pop
Transform
Push
Transform
Set
Flags
Draw
Circle
Draw
Polygon
apply
Fill
Color
apply
Stroke
Color
Physics
Ray
Cast
Callback
b2
Distance
Joint
b2
Fixed
Joint
b2
Hinge
Joint
b2
Joint
b2
Mouse
Joint
b2
Physics
World
b2
Relative
Joint
b2
Rigid
Body2D
b2
Slider
Joint
b2
Spring
Joint
b2
Wheel
Joint
b2
Contact
Extends
GREEN_
COLOR
RED_
COLOR
_tmp_
color
_tmp_
vec2
b2worldmanifold
manifold
Point
Cache
point
Cache
pools
temo
Body
Def
temp
B2AABB
temp
B2Vec2
temp
Vec2_
1
temp
Vec2_
1
temp
Vec2_
2
temp
Vec3
temp
Vec3
test
Results
impulse
manifold
worldmanifold
Generated using
TypeDoc