skeleton:getIKConstraint()

Type: function
See also: skeleton, getIkConstraintNames, ikConstraint

Overview:


Retrieves a ikConstraint for the specified IK constraint name or nil if not found.

Syntax:


local ikObj = skeleton:getIKConstraint(ikConstraintName)
  • ikConstraintName (required):

    string – The name of the IK constraint to search for.

Return value:


LuaIKConstraint or nil – The IK constraint object, or nil if not found. See ikconstraint/index for more information.

Example:


local armIK = hero:getIKConstraint("armIK")
if armIK then
    print("Found IK constraint:", armIK.name)
end