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
AmmoHingeConstraint
Class AmmoHingeConstraint
Hierarchy
AmmoConstraint
AmmoHingeConstraint
Implements
IBaseConstraint
IHingeConstraint
Index
Properties
_axisA
_axisB
_collided
_com
_impl
_pivotA
_pivotB
_rigid
Body
dirty
index
Accessors
constraint
impl
Methods
initialize
on
Component
Set
on
Destroy
on
Disable
on
Enable
on
Load
set
AxisA
set
AxisB
set
Connected
Body
set
Enable
Collision
set
PivotA
set
PivotB
update
ByRe
Add
Properties
Private
_axisA
_axisA
:
btVector3
Private
_axisB
_axisB
:
btVector3
Protected
_collided
_collided
:
boolean
= false
Protected
_com
_com
:
Constraint
Protected
_impl
_impl
:
btTypedConstraint
Private
_pivotA
_pivotA
:
btVector3
Private
_pivotB
_pivotB
:
btVector3
Protected
_rigid
Body
_rigid
Body
:
RigidBody
|
null
= null
dirty
dirty
:
number
= 0
index
index
:
number
= -1
Accessors
constraint
get
constraint
(
)
:
HingeConstraint
Returns
HingeConstraint
impl
get
impl
(
)
:
btHingeConstraint
Returns
btHingeConstraint
Methods
initialize
initialize
(
v
:
Constraint
)
:
void
Parameters
v:
Constraint
Returns
void
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
AxisA
set
AxisA
(
v
:
IVec3Like
)
:
void
Parameters
v:
IVec3Like
Returns
void
set
AxisB
set
AxisB
(
v
:
IVec3Like
)
:
void
Parameters
v:
IVec3Like
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
set
PivotA
set
PivotA
(
v
:
IVec3Like
)
:
void
Parameters
v:
IVec3Like
Returns
void
set
PivotB
set
PivotB
(
v
:
IVec3Like
)
:
void
Parameters
v:
IVec3Like
Returns
void
update
ByRe
Add
update
ByRe
Add
(
)
:
void
Returns
void
Globals
cocos\physics\ammo\constraints
Ammo
Constraint
Ammo
Hinge
Constraint
_axisA
_axisB
_collided
_com
_impl
_pivotA
_pivotB
_rigid
Body
dirty
index
constraint
impl
initialize
on
Component
Set
on
Destroy
on
Disable
on
Enable
on
Load
set
AxisA
set
AxisB
set
Connected
Body
set
Enable
Collision
set
PivotA
set
PivotB
update
ByRe
Add
Ammo
Point
ToPoint
Constraint
Generated using
TypeDoc