imported>Chemicalcrux Creating the page (with a bot!) |
eyeside |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=EyeRotationDriverComponent.png | |Image=EyeRotationDriverComponent.png | ||
Line 8: | Line 7: | ||
}} | }} | ||
{{stub}} | |||
<!--T:2--> | <!--T:2--> | ||
The '''EyeRotationDriver''' component can control the rotation of slots using the data from an [[Component:EyeManager|EyeManager]]. | |||
<!--T:3--> | <!--T:3--> | ||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|EyeManager|EyeManager| | |EyeManager|'''[[Component:EyeManager|EyeManager]]'''|TypeAdv0=true| The source of the eye rotation data. | ||
|EyeMotionScale|Float| | |EyeMotionScale|Float| How much to multiply the target rotation by before applying it to an [[#Eye|Eye]]. | ||
|EyeMotionExp|Float| | |EyeMotionExp|Float| The exponent. This makes the eye rotate more or less as it reaches higher rotation target values. | ||
|MaxSwing|Float| | |MaxSwing|Float| The maximum amount the eyes can rotate in degrees from forward facing. | ||
|Eyes|Eye| | |Eyes|{{RootFieldType|SyncList`1|[[#Eye|Eye]]}}|TypeAdv4=true| A list of eyes to drive the rotation of. | ||
}} | |||
== Eye == | |||
{{Table TypeFields | |||
|Side|EyeSide| Left or right eye. | |||
|Root|Slot| the slot of this eye that should be rotated | |||
|Up|Float3|The up direction of <code>Root</code> in local space. | |||
|Forward|Float3| The forward direction of <code>Root</code> in local space. | |||
|Rotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv4=true|The rotation field of <code>Root</code> to drive. | |||
}} | |||
=== Sync Delegates === | |||
{{Table ComponentTriggers | |||
|SettupFromRoot()|[[Type:Action|Action]]|Sets up the <code>Forward</code>, <code>Up</code>, and <code>Rotation</code> fields when <code>Root</code> is provided. | |||
}} | }} | ||
<!--T:4--> | <!--T:4--> | ||
== | == Usage == | ||
Set up automatically on avatars that are made using the [[Avatar Creator]]. | |||
<!--T:5--> | <!--T:5--> | ||
Line 28: | Line 43: | ||
<!--T:6--> | <!--T:6--> | ||
== | == See Also == | ||
* [[Component:EyeManager]] | |||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}| | [[Category:Components{{#translation:}}|Eye Rotation Driver]] | ||
[[Category:ComponentStubs]] | [[Category:ComponentStubs]] | ||
[[Category:Components:Users:Common Avatar System:Face{{#translation:}}| | [[Category:Components With Nested Types{{#translation:}}|Eye Rotation Driver]] | ||
[[Category:Components:Users:Common Avatar System:Face{{#translation:}}|Eye Rotation Driver]] |
Latest revision as of 23:59, 23 December 2024
Component image
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
The EyeRotationDriver component can control the rotation of slots using the data from an EyeManager.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
EyeManager
|
EyeManager | The source of the eye rotation data. |
EyeMotionScale
|
Float | How much to multiply the target rotation by before applying it to an Eye. |
EyeMotionExp
|
Float | The exponent. This makes the eye rotate more or less as it reaches higher rotation target values. |
MaxSwing
|
Float | The maximum amount the eyes can rotate in degrees from forward facing. |
Eyes
|
list of Eye | A list of eyes to drive the rotation of. |
Eye
Name | Type | Description |
---|---|---|
Side
|
EyeSide | Left or right eye. |
Root
|
Slot | the slot of this eye that should be rotated |
Up
|
Float3 | The up direction of Root in local space.
|
Forward
|
Float3 | The forward direction of Root in local space.
|
Rotation
|
field drive of FloatQ | The rotation field of Root to drive.
|
Sync Delegates
Method Name | Method type and Arguments. | Description |
---|---|---|
SettupFromRoot()
|
Action | Sets up the Forward , Up , and Rotation fields when Root is provided.
|
Usage
Set up automatically on avatars that are made using the Avatar Creator.