IKControlクラス
ひとことで言うと
IKControlは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Specifies a control to generate a procedural animation pose using Inverse Kinematics.
クラスの関係
プロパティ(11)
| 名前と書き方 | 説明 |
|---|---|
ChainRootIKControl.ChainRoot: Instance | The last part that you are interested in moving your character. For example, the upper arm. Must be an ancestor of Class.IKControl.EndEffector|EndEffector and be a BasePart or a Bone in your character. |
EnabledIKControl.Enabled: boolean | Toggles the control on and off. True by default. |
EndEffectorIKControl.EndEffector: Instance | The part that you are interested in moving to reach the Class.IKControl.Target|Target. For example, the hand of your character. Must be a descendant of Class.IKControl.ChainRoot|ChainRoot and be a BasePart or a Bone in your character. |
EndEffectorOffsetIKControl.EndEffectorOffset: CFrame | An additional offset applied on top of the Class.IKControl.EndEffector|EndEffector in its local space to change where it moves. |
OffsetIKControl.Offset: CFrame | An additional offset applied on top of the Class.IKControl.Target|Target to change where the Class.IKControl.EndEffector|EndEffector moves. |
PoleIKControl.Pole: Instance | An optional instance that determines which way the chain bends. You can use this to specify which way an elbow or knee bends. |
PriorityIKControl.Priority: int | Specifies the order in which controls are solved. Higher values have higher priority. |
SmoothTimeIKControl.SmoothTime: float | Specifies the average number of seconds that it takes for the Class.IKControl.EndEffector|EndEffector to smoothly reach the Class.IKControl.Target|Target. |
TargetIKControl.Target: Instance | The object that the Class.IKControl.EndEffector|EndEffector reaches for or points at. It can be anything that has a position in the world, such as BasePart, Attachment, Bone, or Motor6D. |
TypeIKControl.Type: IKControlType | Specifies how the solver satisfies this control. |
WeightIKControl.Weight: float | Specifies the weight of the IK control target. Should be in the [0, 1] range. |
メソッド(6)
| 名前と書き方 | 説明 |
|---|---|
GetChainCountIKControl:GetChainCount(): int | Returns the number of segments in the IK chain between the Class.IKControl.ChainRoot|ChainRoot and the Class.IKControl.EndEffector|EndEffector. |
GetChainLengthIKControl:GetChainLength(): float | Returns the total length, in studs, of the IK chain between the Class.IKControl.ChainRoot|ChainRoot and the Class.IKControl.EndEffector|EndEffector. |
GetNodeLocalCFrameIKControl:GetNodeLocalCFrame(index: int): CFrame | Returns the CFrame of the chain node at the given index, relative to its parent node in the chain. |
GetNodeWorldCFrameIKControl:GetNodeWorldCFrame(index: int): CFrame | Returns the world-space CFrame of the chain node at the given index. |
GetRawFinalTargetIKControl:GetRawFinalTarget(): CFrame | Returns the world-space target CFrame the solver aims for before Class.IKControl.SmoothTime|SmoothTime smoothing is applied. |
GetSmoothedFinalTargetIKControl:GetSmoothedFinalTarget(): CFrame | Returns the world-space target CFrame the solver aims for after Class.IKControl.SmoothTime|SmoothTime smoothing is applied. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(IKControl)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。