Engine Class
IKControl
*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่
สรุป
คุณสมบัติ
วิธีการ
GetNodeLocalCFrame(index: number):CFrame |
GetNodeWorldCFrame(index: number):CFrame |
ตัวอย่างโค้ด
การตั้งค่า IKControl
local character = script.Parent.Character
local humanoid = character.Humanoid
local root = character.HumanoidRootPart
-- สร้างการแนบใหม่เพื่อใช้เป็น 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เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
วิธีการ
GetNodeLocalCFrame
GetNodeWorldCFrame