正在准备搜索索引...
搜索索引不可用
LayaAir3引擎API
LayaAir3引擎API
laya/ik/IK_Joint
IK_Joint
类 IK_Joint
索引
构造函数
constructor
属性
bone
child
Dir
Off
constraint
fixed
length
name
rel
Pos
transform
type
访问器
parent
position
rotation
Quat
world
Matrix
方法
apply
Transform
copy
Transform
perturb
Joint
random
visualize
构造函数
constructor
new IK_
Joint
(
bone
?
)
:
IK_Joint
参数
可选
bone
:
Sprite3D
返回
IK_Joint
属性
bone
bone
:
Sprite3D
child
Dir
Off
child
Dir
Off
:
Matrix4x4
= null
constraint
constraint
:
IK_ConstraintInstance
fixed
fixed
:
boolean
= false
length
length
:
number
= 1
name
name
:
string
= ''
rel
Pos
rel
Pos
:
Vector3
= ...
transform
transform
:
Transform3D
= ...
type
type
:
"revolute"
|
"prismatic"
访问器
parent
get
parent
(
)
:
IK_Joint
返回
IK_Joint
set
parent
(
p
)
:
void
参数
p
:
IK_Joint
返回
void
position
get
position
(
)
:
Vector3
返回
Vector3
set
position
(
p
)
:
void
参数
p
:
Vector3
返回
void
rotation
Quat
get
rotationQuat
(
)
:
Quaternion
返回
Quaternion
set
rotationQuat
(
q
)
:
void
参数
q
:
Quaternion
返回
void
world
Matrix
get
worldMatrix
(
)
:
Matrix4x4
返回
Matrix4x4
方法
apply
Transform
apply
Transform
(
weight
)
:
void
参数
weight
:
number
返回
void
copy
Transform
copy
Transform
(
)
:
void
返回
void
perturb
Joint
perturb
Joint
(
)
:
boolean
扰动关节以跳出共线状态
返回
boolean
如果成功扰动返回true,如果无法扰动返回false
random
random
(
axis
,
baseVec
,
childVec
)
:
Vector3
参数
axis
:
Vector3
baseVec
:
Vector3
childVec
:
Vector3
返回
Vector3
visualize
visualize
(
line
)
:
void
参数
line
:
ILinerender
返回
void
Version
显示设置
成员可见性
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
bone
child
Dir
Off
constraint
fixed
length
name
rel
Pos
transform
type
访问器
parent
position
rotation
Quat
world
Matrix
方法
apply
Transform
copy
Transform
perturb
Joint
random
visualize
LayaAir3引擎API
加载中……
扰动关节以跳出共线状态