Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
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
PhysicsRayCastCallback
Class PhysicsRayCastCallback
Hierarchy
b2RayCastCallback
PhysicsRayCastCallback
Index
Properties
_fixtures
_fractions
_mask
_normals
_points
_type
Methods
Report
Fixture
Report
Particle
Should
Query
Particle
System
get
Fixtures
get
Fractions
get
Normals
get
Points
init
Properties
_fixtures
_fixtures
:
b2.Fixture
[]
= []
_fractions
_fractions
:
number
[]
= []
_mask
_mask
:
number
= 4294967295
_normals
_normals
:
Vec2
[]
= []
_points
_points
:
Vec2
[]
= []
_type
_type
:
ERaycast2DType
= ERaycast2DType.Closest
Methods
Report
Fixture
Report
Fixture
(
fixture
:
b2.Fixture
, point
:
any
, normal
:
any
, fraction
:
any
)
:
any
Parameters
fixture:
b2.Fixture
point:
any
normal:
any
fraction:
any
Returns
any
Report
Particle
Report
Particle
(
system
:
b2ParticleSystem
, index
:
number
, point
:
b2Vec2
, normal
:
b2Vec2
, fraction
:
number
)
:
number
Parameters
system:
b2ParticleSystem
index:
number
point:
b2Vec2
normal:
b2Vec2
fraction:
number
Returns
number
Should
Query
Particle
System
Should
Query
Particle
System
(
system
:
b2ParticleSystem
)
:
boolean
Parameters
system:
b2ParticleSystem
Returns
boolean
get
Fixtures
get
Fixtures
(
)
:
b2Fixture
[]
Returns
b2Fixture
[]
get
Fractions
get
Fractions
(
)
:
number
[]
Returns
number
[]
get
Normals
get
Normals
(
)
:
Vec2
[]
Returns
Vec2
[]
get
Points
get
Points
(
)
:
Vec2
[]
Returns
Vec2
[]
init
init
(
type
:
ERaycast2DType
, mask
:
number
)
:
void
Parameters
type:
ERaycast2DType
mask:
number
Returns
void
Globals
physics2d
box2d
Manifold
Point
PhysicsAABBQuery
Callback
Physics
Contact
Physics
Contact
Listener
Physics
Debug
Draw
Physics
Ray
Cast
Callback
_fixtures
_fractions
_mask
_normals
_points
_type
Report
Fixture
Report
Particle
Should
Query
Particle
System
get
Fixtures
get
Fractions
get
Normals
get
Points
init
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