Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.2
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.1
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
b2WheelJoint
Class b2WheelJoint
Hierarchy
b2Joint
b2WheelJoint
Implements
IJoint2D
IWheelJoint
Index
Properties
_b2joint
_body
_joint
Comp
Accessors
body
comp
impl
Methods
create
Joint
Def
destroy
init
enable
Motor
initialize
is
Valid
on
Disable
on
Enable
set
Damping
Ratio
set
Frequency
set
Max
Motor
Torque
set
Motor
Speed
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
(
)
:
b2WheelJointDef
Returns
b2WheelJointDef
destroy
_destroy
(
)
:
void
Returns
void
init
_init
(
)
:
void
Returns
void
enable
Motor
enable
Motor
(
v
:
boolean
)
:
void
Parameters
v:
boolean
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
Damping
Ratio
set
Damping
Ratio
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Frequency
set
Frequency
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Max
Motor
Torque
set
Max
Motor
Torque
(
v
:
number
)
:
void
Parameters
v:
number
Returns
void
set
Motor
Speed
set
Motor
Speed
(
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
b2
Rigid
Body2D
b2
Slider
Joint
b2
Spring
Joint
b2
Wheel
Joint
_b2joint
_body
_joint
Comp
body
comp
impl
create
Joint
Def
destroy
init
enable
Motor
initialize
is
Valid
on
Disable
on
Enable
set
Damping
Ratio
set
Frequency
set
Max
Motor
Torque
set
Motor
Speed
start
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