Source 2 Animation System VScript API/CModelVScriptCompile.CreateIKControlRig: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Function Description == ''' int CModelVScriptCompile::CreateIKControlRig(string type, table parameters) ''' Creates an Inverse Kinematics rig out of a set of IK chains....") |
Thunder4ik (talk | contribs) m (clean up, added deadend tag) |
||
Line 1: | Line 1: | ||
{{Dead end|date=January 2024}} | |||
== Function Description == | == Function Description == | ||
''' int CModelVScriptCompile::CreateIKControlRig(string type, table parameters) ''' | ''' int CModelVScriptCompile::CreateIKControlRig(string type, table parameters) ''' | ||
Line 26: | Line 27: | ||
== Biped Parameters == | == Biped Parameters == | ||
When the type is set to "biped", a bipedal leg rig is created, suitable for humans and similar creatures. The parameters are added as keys in the ''parameters'' table. | When the type is set to "biped", a bipedal leg rig is created, suitable for humans and similar creatures. The parameters are added as keys in the ''parameters'' table. | ||
{{todo|This list is likely incomplete.}} | {{todo|This list is likely incomplete.}} | ||
Line 55: | Line 56: | ||
| Name of the right foot IK chain. | | Name of the right foot IK chain. | ||
|} | |} | ||
== Bug Parameters == | == Bug Parameters == | ||
The "bug" type creates a rig for insect legs. The parameters are added as keys in the ''parameters'' table. | The "bug" type creates a rig for insect legs. The parameters are added as keys in the ''parameters'' table. | ||
{{todo|This list is likely incomplete.}} | {{todo|This list is likely incomplete.}} | ||
Line 79: | Line 79: | ||
| | | | ||
|} | |} | ||
[[Category:Scripting]] | [[Category:Scripting]] |
Latest revision as of 10:13, 21 January 2024

This article has no
links to other VDC articles. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024


January 2024
Function Description
int CModelVScriptCompile::CreateIKControlRig(string type, table parameters)
Creates an Inverse Kinematics rig out of a set of IK chains.
Parameters
Type | Name | Description |
---|---|---|
string | type | Type of the rig. Two types are known, "biped" and "bug". |
table | parameters | IK rig parameters (see below). |
Returns
int - Index of the IK rig.
Biped Parameters
When the type is set to "biped", a bipedal leg rig is created, suitable for humans and similar creatures. The parameters are added as keys in the parameters table.
Todo: This list is likely incomplete.
Name | Type | Description |
---|---|---|
pelvisBoneName | string | |
tiltBone | string | |
maxCenterOfMassDifference | unknown | |
leftFootChain | string | Name of the left foot IK chain. |
rightFootChain | string | Name of the right foot IK chain. |
Bug Parameters
The "bug" type creates a rig for insect legs. The parameters are added as keys in the parameters table.
Todo: This list is likely incomplete.
Name | Type | Description |
---|---|---|
legs | array of strings | Names of all the IK chains for the individual legs. Todo: Does order matter?
|
pivot_bone | string | |
pivot_influence | float |