Apprendre
Classe de moteur
IKControl

*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.


Échantillons de code
Configuration de l'IKControl
local character = script.Parent.Character
local humanoid = character.Humanoid
local root = character.HumanoidRootPart
-- Créer une nouvelle attache à utiliser comme l'IKControl.Target
local target = Instance.new("Attachment")
target.CFrame = CFrame.new(-1, 0, -1)
target.Parent = root
local ikControl = Instance.new("IKControl")
ikControl.Type = Enum.IKControlType.Position
ikControl.EndEffector = character.LeftHand
ikControl.ChainRoot = character.LeftUpperArm
ikControl.Target = target
ikControl.Parent = humanoid

Référence API
Propriétés
ChainRoot
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.ChainRoot:Instance

Enabled
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.Enabled:boolean

EndEffector
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.EndEffector:Instance

EndEffectorOffset
Lecture parallèle
Capacités : Animation
IKControl.EndEffectorOffset:CFrame

Offset
Lecture parallèle
Capacités : Animation
IKControl.Offset:CFrame

Pole
Lecture parallèle
Capacités : Animation
IKControl.Pole:Instance

Priority
Lecture parallèle
Capacités : Animation
IKControl.Priority:number

SmoothTime
Lecture parallèle
Capacités : Animation
IKControl.SmoothTime:number

Target
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.Target:Instance

Type
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.Type:Enum.IKControlType

Weight
Lecture parallèle
Capacités : Animation
Accès à la simulation
IKControl.Weight:number

Méthodes
GetChainCount
Capacités : Animation
IKControl:GetChainCount():number
Retours

GetChainLength
Capacités : Animation
IKControl:GetChainLength():number
Retours

GetNodeLocalCFrame
Capacités : Animation
IKControl:GetNodeLocalCFrame(index:number):CFrame
Paramètres
index:number
Retours

GetNodeWorldCFrame
Capacités : Animation
IKControl:GetNodeWorldCFrame(index:number):CFrame
Paramètres
index:number
Retours

GetRawFinalTarget
Capacités : Animation
IKControl:GetRawFinalTarget():CFrame
Retours

GetSmoothedFinalTarget
Capacités : Animation
IKControl:GetSmoothedFinalTarget():CFrame
Retours

©2026 Société Roblox. Roblox, le logo Roblox et Powering Imagination font partie de nos marques déposées aux États-Unis et dans d'autres pays.