Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 1.2
Version: 1.0
Version: 1.1
Search
Preparing search index...
The search index is not available
Creator3dAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
constraints
AmmoConstraint
Class AmmoConstraint
Hierarchy
AmmoConstraint
AmmoPointToPointConstraint
AmmoHingeConstraint
Implements
IBaseConstraint
Index
Properties
_collided
_com
_impl
_rigid
Body
dirty
index
Accessors
constraint
impl
Methods
initialize
on
Component
Set
on
Destroy
on
Disable
on
Enable
on
Load
set
Connected
Body
set
Enable
Collision
update
ByRe
Add
Properties
Protected
_collided
_collided
:
boolean
= false
Protected
_com
_com
:
Constraint
Protected
_impl
_impl
:
btTypedConstraint
Protected
_rigid
Body
_rigid
Body
:
RigidBody
|
null
= null
dirty
dirty
:
number
= 0
index
index
:
number
= -1
Accessors
constraint
get
constraint
(
)
:
Constraint
Returns
Constraint
impl
get
impl
(
)
:
btTypedConstraint
Returns
btTypedConstraint
Methods
initialize
initialize
(
v
:
Constraint
)
:
void
Parameters
v:
Constraint
Returns
void
Protected
on
Component
Set
on
Component
Set
(
)
:
void
Returns
void
on
Destroy
on
Destroy
(
)
:
void
Returns
void
on
Disable
on
Disable
(
)
:
void
Returns
void
on
Enable
on
Enable
(
)
:
void
Returns
void
on
Load
on
Load
(
)
:
void
Returns
void
set
Connected
Body
set
Connected
Body
(
v
:
RigidBody
|
null
)
:
void
Parameters
v:
RigidBody
|
null
Returns
void
set
Enable
Collision
set
Enable
Collision
(
v
:
boolean
)
:
void
Parameters
v:
boolean
Returns
void
update
ByRe
Add
update
ByRe
Add
(
)
:
void
Returns
void
Globals
cocos\physics\ammo\constraints
Ammo
Constraint
_collided
_com
_impl
_rigid
Body
dirty
index
constraint
impl
initialize
on
Component
Set
on
Destroy
on
Disable
on
Enable
on
Load
set
Connected
Body
set
Enable
Collision
update
ByRe
Add
Ammo
Hinge
Constraint
Ammo
Point
ToPoint
Constraint
Generated using
TypeDoc