跳到主要内容

SkeletonIK

继承

Node

简要描述

描述

成员

类型属性名默认值
floatinterpolation1.0
Vector3magnetVector3( 0, 0, 0 )
intmax_iterations10
floatmin_distance0.01
booloverride_tip_basistrue
Stringroot_bone""
TransformtargetTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
NodePathtarget_nodeNodePath("")
Stringtip_bone""
booluse_magnetfalse

方法

返回值类型方法名称
Skeletonget_parent_skeleton() const
boolis_running()
voidstart(one_time: bool = false)
voidstop()

常量

成员说明

  • float interpolation
Default1.0
setterset_interpolation(value)
getterget_interpolation
  • Vector3 magnet
DefaultVector3( 0, 0, 0 )
setterset_magnet_position(value)
getterget_magnet_position
  • int max_iterations
Default10
setterset_max_iterations(value)
getterget_max_iterations
  • float min_distance
Default0.01
setterset_min_distance(value)
getterget_min_distance
  • bool override_tip_basis
Defaulttrue
setterset_override_tip_basis(value)
getteris_override_tip_basis
  • String root_bone
Default""
setterset_root_bone(value)
getterget_root_bone
  • Transform target
DefaultTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
setterset_target_transform(value)
getterget_target_transform
  • NodePath target_node
DefaultNodePath("")
setterset_target_node(value)
getterget_target_node
  • String tip_bone
Default""
setterset_tip_bone(value)
getterget_tip_bone
  • bool use_magnet
Defaultfalse
setterset_use_magnet(value)
getteris_using_magnet

方法说明

  • get_parent_skeleton get_parent_skeleton() const

  • is_running is_running()

  • start start(one_time: bool = false)

  • stop stop()