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.
Résumé
Propriétés
Méthodes
GetNodeLocalCFrame(index: number):CFrame |
GetNodeWorldCFrame(index: number):CFrame |
É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 = humanoidRéférence API
Propriétés
Méthodes
GetNodeLocalCFrame
GetNodeWorldCFrame