Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
dynamics
b2PulleyJoint
Class b2PulleyJoint
Hierarchy
b2Joint
b2PulleyJoint
Index
Constructors
constructor
Properties
m_
bodyA
m_
bodyB
m_
collide
Connected
m_
constant
m_
edgeA
m_
edgeB
m_
ground
AnchorA
m_
ground
AnchorB
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_
lengthA
m_
lengthB
m_
local
AnchorA
m_
local
AnchorB
m_
local
CenterA
m_
local
CenterB
m_
mass
m_
next
m_
prev
m_
qA
m_
qB
m_
rA
m_
rB
m_
ratio
m_
type
m_
uA
m_
uB
m_
user
Data
Get
Current
Length
A_
s_p
Get
Current
Length
B_
s_p
Init
Velocity
Constraints_
s_PA
Init
Velocity
Constraints_
s_PB
Solve
Position
Constraints_
s_PA
Solve
Position
Constraints_
s_PB
Solve
Velocity
Constraints_
s_PA
Solve
Velocity
Constraints_
s_PB
Solve
Velocity
Constraints_
s_vpA
Solve
Velocity
Constraints_
s_vpB
Methods
Dump
Get
AnchorA
Get
AnchorB
Get
BodyA
Get
BodyB
Get
Collide
Connected
Get
Current
LengthA
Get
Current
LengthB
Get
Ground
AnchorA
Get
Ground
AnchorB
Get
LengthA
Get
LengthB
Get
Next
Get
Ratio
Get
Reaction
Force
Get
Reaction
Torque
Get
Type
Get
User
Data
Init
Velocity
Constraints
Is
Active
Set
User
Data
Shift
Origin
Solve
Position
Constraints
Solve
Velocity
Constraints
Constructors
constructor
newb2
Pulley
Joint
(
def
:
b2IPulleyJointDef
)
:
b2PulleyJoint
Parameters
def:
b2IPulleyJointDef
Returns
b2PulleyJoint
Properties
m_
bodyA
m_
bodyA
:
b2Body
m_
bodyB
m_
bodyB
:
b2Body
m_
collide
Connected
m_
collide
Connected
:
boolean
= false
m_
constant
m_
constant
:
number
= 0
Readonly
m_
edgeA
m_
edgeA
:
b2JointEdge
= new b2JointEdge(this)
Readonly
m_
edgeB
m_
edgeB
:
b2JointEdge
= new b2JointEdge(this)
Readonly
m_
ground
AnchorA
m_
ground
AnchorA
:
b2Vec2
= new b2Vec2()
Readonly
m_
ground
AnchorB
m_
ground
AnchorB
:
b2Vec2
= new b2Vec2()
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_
lengthA
m_
lengthA
:
number
= 0
m_
lengthB
m_
lengthB
:
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_
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_
ratio
m_
ratio
:
number
= 0
Readonly
m_
type
m_
type
:
b2JointType
= b2JointType.e_unknownJoint
Readonly
m_
uA
m_
uA
:
b2Vec2
= new b2Vec2()
Readonly
m_
uB
m_
uB
:
b2Vec2
= new b2Vec2()
m_
user
Data
m_
user
Data
:
any
= null
Static
Private
Get
Current
Length
A_
s_p
Get
Current
Length
A_
s_p
:
b2Vec2
= new b2Vec2()
Static
Private
Get
Current
Length
B_
s_p
Get
Current
Length
B_
s_p
:
b2Vec2
= new b2Vec2()
Static
Private
Init
Velocity
Constraints_
s_PA
Init
Velocity
Constraints_
s_PA
:
b2Vec2
= new b2Vec2()
Static
Private
Init
Velocity
Constraints_
s_PB
Init
Velocity
Constraints_
s_PB
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Position
Constraints_
s_PA
Solve
Position
Constraints_
s_PA
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Position
Constraints_
s_PB
Solve
Position
Constraints_
s_PB
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Velocity
Constraints_
s_PA
Solve
Velocity
Constraints_
s_PA
:
b2Vec2
= new b2Vec2()
Static
Private
Solve
Velocity
Constraints_
s_PB
Solve
Velocity
Constraints_
s_PB
:
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
Current
LengthA
Get
Current
LengthA
(
)
:
number
Returns
number
Get
Current
LengthB
Get
Current
LengthB
(
)
:
number
Returns
number
Get
Ground
AnchorA
Get
Ground
AnchorA
(
)
:
b2Vec2
Returns
b2Vec2
Get
Ground
AnchorB
Get
Ground
AnchorB
(
)
:
b2Vec2
Returns
b2Vec2
Get
LengthA
Get
LengthA
(
)
:
number
Returns
number
Get
LengthB
Get
LengthB
(
)
:
number
Returns
number
Get
Next
Get
Next
(
)
:
b2Joint
|
null
Returns
b2Joint
|
null
Get
Ratio
Get
Ratio
(
)
:
number
Returns
number
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
User
Data
Set
User
Data
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Shift
Origin
Shift
Origin
(
newOrigin
:
b2Vec2
)
:
void
Parameters
newOrigin:
b2Vec2
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
Pulley
Joint
constructor
m_
bodyA
m_
bodyB
m_
collide
Connected
m_
constant
m_
edgeA
m_
edgeB
m_
ground
AnchorA
m_
ground
AnchorB
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_
lengthA
m_
lengthB
m_
local
AnchorA
m_
local
AnchorB
m_
local
CenterA
m_
local
CenterB
m_
mass
m_
next
m_
prev
m_
qA
m_
qB
m_
rA
m_
rB
m_
ratio
m_
type
m_
uA
m_
uB
m_
user
Data
Get
Current
Length
A_
s_p
Get
Current
Length
B_
s_p
Init
Velocity
Constraints_
s_PA
Init
Velocity
Constraints_
s_PB
Solve
Position
Constraints_
s_PA
Solve
Position
Constraints_
s_PB
Solve
Velocity
Constraints_
s_PA
Solve
Velocity
Constraints_
s_PB
Solve
Velocity
Constraints_
s_vpA
Solve
Velocity
Constraints_
s_vpB
Dump
Get
AnchorA
Get
AnchorB
Get
BodyA
Get
BodyB
Get
Collide
Connected
Get
Current
LengthA
Get
Current
LengthB
Get
Ground
AnchorA
Get
Ground
AnchorB
Get
LengthA
Get
LengthB
Get
Next
Get
Ratio
Get
Reaction
Force
Get
Reaction
Torque
Get
Type
Get
User
Data
Init
Velocity
Constraints
Is
Active
Set
User
Data
Shift
Origin
Solve
Position
Constraints
Solve
Velocity
Constraints
Generated using
TypeDoc