The EyeRotationDriver can control the rotation of slots using the data from an [[Component:EyeManager|EyeManager]].
The '''EyeRotationDriver''' component can control the rotation of slots using the data from an [[Component:EyeManager|EyeManager]].
<!--T:3-->
<!--T:3-->
Line 17:
Line 18:
|EyeMotionExp|Float| The exponent. This makes the eye rotate more or less as it reaches higher rotation target values.
|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.
|MaxSwing|Float| The maximum amount the eyes can rotate in degrees from forward facing.
|Eyes|{{RootFieldType|SyncList`1|[[#Eye|Eye]]}}|TypeAdv4=true| A list of eyes to drive the rotation of.
|Eyes|{{RootFieldType|SyncList`1|[[#Eye|EyeRotationDriver.Eye]]}}|TypeAdv4=true| A list of eyes to drive the rotation of.
}}
}}
== Eye ==
== Eye ==
{{Table TypeFields
{{Table TypeFields
|Side|Xisdjdjejjsjsjwjqjehsuakshdjsjaj| Left or right eye.
|Side|EyeSide| Left or right eye.
|Root|Slot| the slot of this eye that should be rotated
|Root|Slot| the slot of this eye that should be rotated
|Up|Float3|The up direction of <code>Root</code> in local space.
|Up|Float3|The up direction of <code>Root</code> in local space.
|Forward|Float3| The forward 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]]}}|The rotation field of <code>Root</code> to drive.
|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.
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.