m ProbablePrime moved page LookAtUser (Component) to Component:LookAtUser: Creating component Namespace |
Automated: update Fields, Categories |
||
Line 9: | Line 9: | ||
The '''LookAtUser''' component drives the rotation specified by <code>_rotationDrive</code> to point towards the user specified in <code>TargetUser</code>, or the Local User if <code>TargetAtLocalUser</code> is checked. | The '''LookAtUser''' component drives the rotation specified by <code>_rotationDrive</code> to point towards the user specified in <code>TargetUser</code>, or the Local User if <code>TargetAtLocalUser</code> is checked. | ||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|TargetUser|User| The user to look at, unless ''TargetAtLocalUser'' is checked. | |TargetUser|User| The user to look at, unless ''TargetAtLocalUser'' is checked. | ||
|TargetAtLocalUser|Bool | Targets the Local User in each client. | |TargetAtLocalUser|Bool| Targets the Local User in each client. | ||
|SourcePositionOffset|Float3| Offset from which to calculate the look vector. | |SourcePositionOffset|Float3| Offset from which to calculate the look vector. | ||
|Invert|Bool| The rotated item faces away from the user, instead of towards. | |Invert|Bool| The rotated item faces away from the user, instead of towards. | ||
|RotationOffset|FloatQ| The degree to which the item is rotated away from the look vector. | |RotationOffset|FloatQ| The degree to which the item is rotated away from the look vector. | ||
|PositionSource| | |PositionSource|'''[[#UserNode|UserNode]]'''|TypeAdv5=true| The UserNode to calculate the look vector from | ||
|AroundAxis|Bool| The rotation is around an arbitrary axis defined in <code>Axis</code>. | |AroundAxis|Bool| The rotation is around an arbitrary axis defined in <code>Axis</code>. | ||
|Axis|Float3| A unit vector specifying the arbitrary axis to rotate around | |Axis|Float3| A unit vector specifying the arbitrary axis to rotate around | ||
|_rotationDrive|FloatQ| ''Automatically Assigned'' - The FloatQ to be driven by this component. | |_rotationDrive|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv8=true| ''Automatically Assigned'' - The FloatQ to be driven by this component. | ||
}} | }} | ||
== Behavior== | == Behavior== | ||
Line 26: | Line 26: | ||
</translate> | </translate> | ||
[[Category:Components:Transform:Drivers{{#translation:}}| | [[Category:Components:Transform:Drivers{{#translation:}}|Look At User]] | ||
[[Category:Components{{#translation:}}| | [[Category:Components With Nested Enums{{#translation:}}|Look At User]] | ||
[[Category:Components{{#translation:}}|Look At User]] |
Latest revision as of 21:26, 3 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
The LookAtUser component drives the rotation specified by _rotationDrive
to point towards the user specified in TargetUser
, or the Local User if TargetAtLocalUser
is checked.
Usage
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. |
TargetUser
|
User | The user to look at, unless TargetAtLocalUser is checked. |
TargetAtLocalUser
|
Bool | Targets the Local User in each client. |
SourcePositionOffset
|
Float3 | Offset from which to calculate the look vector. |
Invert
|
Bool | The rotated item faces away from the user, instead of towards. |
RotationOffset
|
FloatQ | The degree to which the item is rotated away from the look vector. |
PositionSource
|
UserNode | The UserNode to calculate the look vector from |
AroundAxis
|
Bool | The rotation is around an arbitrary axis defined in Axis .
|
Axis
|
Float3 | A unit vector specifying the arbitrary axis to rotate around |
_rotationDrive
|
field drive of FloatQ | Automatically Assigned - The FloatQ to be driven by this component. |