IKControlクラス

クラス日本語解説は準備中

ひとことで言うと

IKControlは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Specifies a control to generate a procedural animation pose using Inverse Kinematics.

クラスの関係

受け継いでいるクラス:Object → Instance → IKControl

プロパティ(11)

名前と書き方説明
ChainRoot
IKControl.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.
Enabled
IKControl.Enabled: boolean
Toggles the control on and off. True by default.
EndEffector
IKControl.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.
EndEffectorOffset
IKControl.EndEffectorOffset: CFrame
An additional offset applied on top of the Class.IKControl.EndEffector|EndEffector in its local space to change where it moves.
Offset
IKControl.Offset: CFrame
An additional offset applied on top of the Class.IKControl.Target|Target to change where the Class.IKControl.EndEffector|EndEffector moves.
Pole
IKControl.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.
Priority
IKControl.Priority: int
Specifies the order in which controls are solved. Higher values have higher priority.
SmoothTime
IKControl.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.
Target
IKControl.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.
Type
IKControl.Type: IKControlType
Specifies how the solver satisfies this control.
Weight
IKControl.Weight: float
Specifies the weight of the IK control target. Should be in the [0, 1] range.

メソッド(6)

名前と書き方説明
GetChainCount
IKControl:GetChainCount(): int
Returns the number of segments in the IK chain between the Class.IKControl.ChainRoot|ChainRoot and the Class.IKControl.EndEffector|EndEffector.
GetChainLength
IKControl:GetChainLength(): float
Returns the total length, in studs, of the IK chain between the Class.IKControl.ChainRoot|ChainRoot and the Class.IKControl.EndEffector|EndEffector.
GetNodeLocalCFrame
IKControl:GetNodeLocalCFrame(index: int): CFrame
Returns the CFrame of the chain node at the given index, relative to its parent node in the chain.
GetNodeWorldCFrame
IKControl:GetNodeWorldCFrame(index: int): CFrame
Returns the world-space CFrame of the chain node at the given index.
GetRawFinalTarget
IKControl:GetRawFinalTarget(): CFrame
Returns the world-space target CFrame the solver aims for before Class.IKControl.SmoothTime|SmoothTime smoothing is applied.
GetSmoothedFinalTarget
IKControl: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)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(IKControl)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む