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
b2RelativeJoint
Class b2RelativeJoint
Hierarchy
b2Joint
b2RelativeJoint
Implements
IJoint2D
IRelativeJoint
Index
Properties
_b2joint
_body
_joint
Comp
Accessors
body
comp
impl
Methods
create
Joint
Def
destroy
init
initialize
is
Valid
on
Disable
on
Enable
set
Angular
Offset
set
Correction
Factor
set
Linear
Offset
set
Max
Force
set
Max
Torque
start
Properties
Protected
_b2joint
_b2joint
:
b2.Joint
|
null
= null
Protected
_body
_body
:
RigidBody2D
|
null
= null
Protected
_joint
Comp
_joint
Comp
:
Joint2D
|
null
= null
Accessors
body
get
body
(
)
:
null
|
RigidBody2D
Returns
null
|
RigidBody2D
comp
get
comp
(
)
:
null
|
Joint2D
Returns
null
|
Joint2D
impl
get
impl
(
)
:
null
|
b2Joint
Returns
null
|
b2Joint
Methods
create
Joint
Def
_create
Joint
Def
(
)
:
b2MotorJointDef
Returns
b2MotorJointDef
destroy
_destroy
(
)
:
void
Returns
void
init
_init
(
)
:
void
Returns
void
initialize
initialize
(
comp
:
Joint2D
)
:
void
Parameters
comp:
Joint2D
Returns
void
is
Valid
is
Valid
(
)
:
null
|
IRigidBody2D
Returns
null
|
IRigidBody2D
on
Disable
on
Disable
(
)
:
void
Returns
void
on
Enable
on
Enable
(
)
:
void
Returns
void
set
Angular
Offset
set
Angular
Offset
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Correction
Factor
set
Correction
Factor
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Linear
Offset
set
Linear
Offset
(
v
:
Vec2
)
:
void
Parameters
v:
Vec2
Returns
void
set
Max
Force
set
Max
Force
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Max
Torque
set
Max
Torque
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
start
start
(
)
:
void
Returns
void
Globals
physics2d
box2d
Manifold
Point
PhysicsAABBQuery
Callback
Physics
Contact
Physics
Contact
Listener
Physics
Debug
Draw
Physics
Ray
Cast
Callback
b2
Distance
Joint
b2
Fixed
Joint
b2
Hinge
Joint
b2
Joint
b2
Mouse
Joint
b2
Physics
World
b2
Relative
Joint
_b2joint
_body
_joint
Comp
body
comp
impl
create
Joint
Def
destroy
init
initialize
is
Valid
on
Disable
on
Enable
set
Angular
Offset
set
Correction
Factor
set
Linear
Offset
set
Max
Force
set
Max
Torque
start
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