Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
dynamics
b2DistanceJointDef
Class b2DistanceJointDef
Hierarchy
b2JointDef
b2DistanceJointDef
Implements
b2IJointDef
b2IDistanceJointDef
Index
Constructors
constructor
Properties
bodyA
bodyB
collide
Connected
damping
Ratio
frequency
Hz
length
local
AnchorA
local
AnchorB
type
user
Data
Methods
Initialize
Constructors
constructor
new b2
Distance
Joint
Def
(
)
:
b2DistanceJointDef
Returns
b2DistanceJointDef
Properties
bodyA
bodyA
:
b2Body
bodyB
bodyB
:
b2Body
collide
Connected
collide
Connected
:
boolean
= false
damping
Ratio
damping
Ratio
:
number
= 0
frequency
Hz
frequency
Hz
:
number
= 0
length
length
:
number
= 1
Readonly
local
AnchorA
local
AnchorA
:
b2Vec2
= new b2Vec2()
Readonly
local
AnchorB
local
AnchorB
:
b2Vec2
= new b2Vec2()
Readonly
type
type
:
b2JointType
= b2JointType.e_unknownJoint
user
Data
user
Data
:
any
= null
Methods
Initialize
Initialize
(
b1
:
b2Body
, b2
:
b2Body
, anchor1
:
XY
, anchor2
:
XY
)
:
void
Parameters
b1:
b2Body
b2:
b2Body
anchor1:
XY
anchor2:
XY
Returns
void
Globals
node_
modules\@cocos\box2d\src\dynamics
b2
Distance
Joint
Def
constructor
bodyA
bodyB
collide
Connected
damping
Ratio
frequency
Hz
length
local
AnchorA
local
AnchorB
type
user
Data
Initialize
Generated using
TypeDoc