Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
dynamics
b2RopeJoint
Class b2RopeJoint
Hierarchy
b2Joint
b2RopeJoint
Index
Constructors
constructor
Properties
m_
bodyA
m_
bodyB
m_
collide
Connected
m_
edgeA
m_
edgeB
m_
impulse
m_
index
m_
indexA
m_
indexB
m_
invIA
m_
invIB
m_
inv
MassA
m_
inv
MassB
m_
island
Flag
m_
lalcA
m_
lalcB
m_
length
m_
local
AnchorA
m_
local
AnchorB
m_
local
CenterA
m_
local
CenterB
m_
mass
m_
max
Length
m_
next
m_
prev
m_
qA
m_
qB
m_
rA
m_
rB
m_
state
m_
type
m_
u
m_
user
Data
Init
Velocity
Constraints_
s_P
Solve
Position
Constraints_
s_P
Solve
Velocity
Constraints_
s_P
Solve
Velocity
Constraints_
s_vpA
Solve
Velocity
Constraints_
s_vpB
Methods
Dump
Get
AnchorA
Get
AnchorB
Get
BodyA
Get
BodyB
Get
Collide
Connected
Get
Limit
State
Get
Local
AnchorA
Get
Local
AnchorB
Get
Max
Length
Get
Next
Get
Reaction
Force
Get
Reaction
Torque
Get
Type
Get
User
Data
Init
Velocity
Constraints
Is
Active
Set
Max
Length
Set
User
Data
Shift
Origin
Solve
Position
Constraints
Solve
Velocity
Constraints
Constructors
constructor
newb2
Rope
Joint
(
def
:
b2IRopeJointDef
)
:
b2RopeJoint
Parameters
def:
b2IRopeJointDef
Returns
b2RopeJoint
Properties
m_
bodyA
m_
bodyA
:
b2Body
m_
bodyB
m_
bodyB
:
b2Body
m_
collide
Connected
m_
collide
Connected
:
boolean
= false
Readonly
m_
edgeA
m_
edgeA
:
b2JointEdge
= new b2JointEdge(this)
Readonly
m_
edgeB
m_
edgeB
:
b2JointEdge
= new b2JointEdge(this)
m_
impulse
m_
impulse
:
number
= 0
m_
index
m_
index
:
number
= 0
m_
indexA
m_
indexA
:
number
= 0
m_
indexB
m_
indexB
:
number
= 0
m_
invIA
m_
invIA
:
number
= 0
m_
invIB
m_
invIB
:
number
= 0
m_
inv
MassA
m_
inv
MassA
:
number
= 0
m_
inv
MassB
m_
inv
MassB
:
number
= 0
m_
island
Flag
m_
island
Flag
:
boolean
= false
Readonly
m_
lalcA
m_
lalcA
:
b2Vec2
= new b2Vec2()
Readonly
m_
lalcB
m_
lalcB
:
b2Vec2
= new b2Vec2()
m_
length
m_
length
:
number
= 0
Readonly
m_
local
AnchorA
m_
local
AnchorA
:
b2Vec2
= new b2Vec2()
Readonly
m_
local
AnchorB
m_
local
AnchorB
:
b2Vec2
= new b2Vec2()
Readonly
m_
local
CenterA
m_
local
CenterA
:
b2Vec2
= new b2Vec2()
Readonly
m_
local
CenterB
m_
local
CenterB
:
b2Vec2
= new b2Vec2()
m_
mass
m_
mass
:
number
= 0
m_
max
Length
m_
max
Length
:
number
= 0
m_
next
m_
next
:
b2Joint
|
null
= null
m_
prev
m_
prev
:
b2Joint
|
null
= null
Readonly
m_
qA
m_
qA
:
b2Rot
= new b2Rot()
Readonly
m_
qB
m_
qB
:
b2Rot
= new b2Rot()
Readonly
m_
rA
m_
rA
:
b2Vec2
= new b2Vec2()
Readonly
m_
rB
m_
rB
:
b2Vec2
= new b2Vec2()
m_
state
m_
state
:
b2LimitState
= b2LimitState.e_inactiveLimit
Readonly
m_
type
m_
type
:
b2JointType
= b2JointType.e_unknownJoint
Readonly
m_
u
m_
u
:
b2Vec2
= new b2Vec2()
m_
user
Data
m_
user
Data
:
any
= null
Static
Private
Init
Velocity
Constraints_
s_P
Init
Velocity
Constraints_
s_P
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Position
Constraints_
s_P
Solve
Position
Constraints_
s_P
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Velocity
Constraints_
s_P
Solve
Velocity
Constraints_
s_P
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Velocity
Constraints_
s_vpA
Solve
Velocity
Constraints_
s_vpA
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Velocity
Constraints_
s_vpB
Solve
Velocity
Constraints_
s_vpB
:
b2Vec2
= new b2Vec2()
Methods
Dump
Dump
(
log
:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
)
:
void
Parameters
log:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
(
format
:
string
,
...
args
:
any
[]
)
:
void
Parameters
format:
string
Rest
...
args:
any
[]
Returns
void
Returns
void
Get
AnchorA
Get
AnchorA<T>
(
out
:
T
)
:
T
Type parameters
T
:
XY
Parameters
out:
T
Returns
T
Get
AnchorB
Get
AnchorB<T>
(
out
:
T
)
:
T
Type parameters
T
:
XY
Parameters
out:
T
Returns
T
Get
BodyA
Get
BodyA
(
)
:
b2Body
Returns
b2Body
Get
BodyB
Get
BodyB
(
)
:
b2Body
Returns
b2Body
Get
Collide
Connected
Get
Collide
Connected
(
)
:
boolean
Returns
boolean
Get
Limit
State
Get
Limit
State
(
)
:
b2LimitState
Returns
b2LimitState
Get
Local
AnchorA
Get
Local
AnchorA
(
)
:
Readonly
<
b2Vec2
>
Returns
Readonly
<
b2Vec2
>
Get
Local
AnchorB
Get
Local
AnchorB
(
)
:
Readonly
<
b2Vec2
>
Returns
Readonly
<
b2Vec2
>
Get
Max
Length
Get
Max
Length
(
)
:
number
Returns
number
Get
Next
Get
Next
(
)
:
b2Joint
|
null
Returns
b2Joint
|
null
Get
Reaction
Force
Get
Reaction
Force<T>
(
inv_dt
:
number
, out
:
T
)
:
T
Type parameters
T
:
XY
Parameters
inv_dt:
number
out:
T
Returns
T
Get
Reaction
Torque
Get
Reaction
Torque
(
inv_dt
:
number
)
:
number
Parameters
inv_dt:
number
Returns
number
Get
Type
Get
Type
(
)
:
b2JointType
Returns
b2JointType
Get
User
Data
Get
User
Data
(
)
:
any
Returns
any
Init
Velocity
Constraints
Init
Velocity
Constraints
(
data
:
b2SolverData
)
:
void
Parameters
data:
b2SolverData
Returns
void
Is
Active
Is
Active
(
)
:
boolean
Returns
boolean
Set
Max
Length
Set
Max
Length
(
length
:
number
)
:
void
Parameters
length:
number
Returns
void
Set
User
Data
Set
User
Data
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Shift
Origin
Shift
Origin
(
newOrigin
:
XY
)
:
void
Parameters
newOrigin:
XY
Returns
void
Solve
Position
Constraints
Solve
Position
Constraints
(
data
:
b2SolverData
)
:
boolean
Parameters
data:
b2SolverData
Returns
boolean
Solve
Velocity
Constraints
Solve
Velocity
Constraints
(
data
:
b2SolverData
)
:
void
Parameters
data:
b2SolverData
Returns
void
Globals
node_
modules\@cocos\box2d\src\dynamics
b2
Rope
Joint
constructor
m_
bodyA
m_
bodyB
m_
collide
Connected
m_
edgeA
m_
edgeB
m_
impulse
m_
index
m_
indexA
m_
indexB
m_
invIA
m_
invIB
m_
inv
MassA
m_
inv
MassB
m_
island
Flag
m_
lalcA
m_
lalcB
m_
length
m_
local
AnchorA
m_
local
AnchorB
m_
local
CenterA
m_
local
CenterB
m_
mass
m_
max
Length
m_
next
m_
prev
m_
qA
m_
qB
m_
rA
m_
rB
m_
state
m_
type
m_
u
m_
user
Data
Init
Velocity
Constraints_
s_P
Solve
Position
Constraints_
s_P
Solve
Velocity
Constraints_
s_P
Solve
Velocity
Constraints_
s_vpA
Solve
Velocity
Constraints_
s_vpB
Dump
Get
AnchorA
Get
AnchorB
Get
BodyA
Get
BodyB
Get
Collide
Connected
Get
Limit
State
Get
Local
AnchorA
Get
Local
AnchorB
Get
Max
Length
Get
Next
Get
Reaction
Force
Get
Reaction
Torque
Get
Type
Get
User
Data
Init
Velocity
Constraints
Is
Active
Set
Max
Length
Set
User
Data
Shift
Origin
Solve
Position
Constraints
Solve
Velocity
Constraints
Generated using
TypeDoc