正在准备搜索索引...
搜索索引不可用
LayaAir3引擎API
LayaAir3引擎API
laya/ik/IK_Chain
IK_Chain
类 IK_Chain
从IK_pose1可以方便的绑定到某个骨骼上,随着动画动
层级 (
查看完整内容
)
IK_ChainBase
IK_Chain
索引
构造函数
constructor
属性
_end
Align
anim
Layer
blend
Weight
enable
ik_
result
joints
layer
Mgr
max
Error
name
pole
Target
solver
static
Layer
total
Length
w
Smoother
访问器
end_
effector
end
Align
end
Fixed
is
Running
show
Dbg
target
weight
Smooth
方法
add
Joint
apply
Debug
Snapshot
applyIKResult
apply
Result
capture
Anim
Pose
capture
Static
Pose
copy
Cur
Pose
As
Init
Pose
copy
Init
Pose
fade
To
Anim
get
Debug
Snapshot
get
Joint
is
Collinear
is
Fading
on
Link
End
reset
Static
Pose
rotate
Joint
solve
update
Rotations
visualize
构造函数
constructor
new IK_
Chain
(
name
,
mgr
)
:
IK_Chain
参数
name
:
string
mgr
:
IK_Comp
返回
IK_Chain
属性
_end
Align
_end
Align
:
"y"
|
"no"
|
"all"
= 'no'
anim
Layer
anim
Layer
:
IK_AnimLayer
= ...
blend
Weight
blend
Weight
:
number
= 1.0
enable
enable
:
boolean
= true
ik_
result
ik_
result
:
IK_AnimLayer
= ...
joints
joints
:
IK_Joint
[]
layer
Mgr
layer
Mgr
:
IK_LayerMgr
= ...
max
Error
max
Error
:
number
= 0.01
name
name
:
string
= ''
pole
Target
pole
Target
:
IK_Target
= null
solver
solver
:
IK_ISolver
= null
static
Layer
static
Layer
:
IK_AnimLayer
= ...
total
Length
total
Length
:
number
= 0
w
Smoother
w
Smoother
:
NumberSmooth
访问器
end_
effector
get
end_effector
(
)
:
IK_Joint
返回
IK_Joint
end
Align
get
endAlign
(
)
:
"y"
|
"no"
|
"all"
返回
"y"
|
"no"
|
"all"
set
endAlign
(
v
)
:
void
参数
v
:
"y"
|
"no"
|
"all"
返回
void
end
Fixed
get
endFixed
(
)
:
boolean
返回
boolean
set
endFixed
(
v
)
:
void
参数
v
:
boolean
返回
void
is
Running
get
isRunning
(
)
:
boolean
返回
boolean
set
isRunning
(
v
)
:
void
参数
v
:
boolean
返回
void
show
Dbg
get
showDbg
(
)
:
boolean
返回
boolean
set
showDbg
(
b
)
:
void
参数
b
:
boolean
返回
void
target
get
target
(
)
:
IK_Target
返回
IK_Target
set
target
(
tar
)
:
void
参数
tar
:
IK_Target
返回
void
weight
Smooth
get
weightSmooth
(
)
:
number
返回
number
set
weightSmooth
(
v
)
:
void
参数
v
:
number
返回
void
方法
add
Joint
add
Joint
(
joint
)
:
void
参数
joint
:
IK_Joint
返回
void
apply
Debug
Snapshot
apply
Debug
Snapshot
(
snapshot
)
:
void
参数
snapshot
:
IK_ChainDebugSnapshot
返回
void
applyIKResult
applyIKResult
(
comp
)
:
void
参数
comp
:
IK_Comp
返回
void
apply
Result
apply
Result
(
)
:
void
返回
void
capture
Anim
Pose
capture
Anim
Pose
(
)
:
void
返回
void
capture
Static
Pose
capture
Static
Pose
(
)
:
void
返回
void
copy
Cur
Pose
As
Init
Pose
copy
Cur
Pose
As
Init
Pose
(
)
:
void
返回
void
copy
Init
Pose
copy
Init
Pose
(
)
:
void
返回
void
fade
To
Anim
fade
To
Anim
(
)
:
void
返回
void
get
Debug
Snapshot
get
Debug
Snapshot
(
)
:
IK_ChainDebugSnapshot
返回
IK_ChainDebugSnapshot
get
Joint
get
Joint
(
name
)
:
IK_Joint
参数
name
:
string
返回
IK_Joint
is
Collinear
is
Collinear
(
target
,
epsilon
?
)
:
boolean
参数
target
:
Vector3
epsilon
:
number
= 1e-3
返回
boolean
is
Fading
is
Fading
(
)
:
boolean
返回
boolean
on
Link
End
on
Link
End
(
)
:
void
返回
void
reset
Static
Pose
reset
Static
Pose
(
)
:
void
返回
void
rotate
Joint
rotate
Joint
(
jointId
,
deltaQuat
)
:
void
参数
jointId
:
number
deltaQuat
:
Quaternion
返回
void
solve
solve
(
comp
)
:
void
参数
comp
:
IK_Comp
返回
void
update
Rotations
update
Rotations
(
)
:
void
根据关节的位置计算关节的朝向。 为了避免扭的效果,按照从根到末端计算,并且都按照相对parent的来计算,而不是按照Z
返回
void
visualize
visualize
(
line
)
:
void
参数
line
:
ILinerender
返回
void
Version
显示设置
成员可见性
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
_end
Align
anim
Layer
blend
Weight
enable
ik_
result
joints
layer
Mgr
max
Error
name
pole
Target
solver
static
Layer
total
Length
w
Smoother
访问器
end_
effector
end
Align
end
Fixed
is
Running
show
Dbg
target
weight
Smooth
方法
add
Joint
apply
Debug
Snapshot
applyIKResult
apply
Result
capture
Anim
Pose
capture
Static
Pose
copy
Cur
Pose
As
Init
Pose
copy
Init
Pose
fade
To
Anim
get
Debug
Snapshot
get
Joint
is
Collinear
is
Fading
on
Link
End
reset
Static
Pose
rotate
Joint
solve
update
Rotations
visualize
LayaAir3引擎API
加载中……
从IK_pose1可以方便的绑定到某个骨骼上,随着动画动