imported>Psychpsyo Added description |
add info on UpSpace and complete this |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
| | |UpSpace|{{RootFieldType|RootSpace}}|TypeAdv0=true| the coordinate space that is used when calculating what is "up". If set to local user space, then the up direction of this component is the up direction of the slot the user is parented under, which is usually up for that user. This can be useful if a user is in a gravity direction which doesn't match the world's up direction, and will make this orient to that user's direction for a better reading experience for example. | ||
| | |_rotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv1=true| The field that is driven to make the object rotate to the user. This is automatically set to the Rotation field of the slot this component is added to. | ||
| | |||
| | |||
}} | }} | ||
Line 23: | Line 21: | ||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
Useful for signs or dialouge boxes. | |||
<!--T:5--> | <!--T:5--> | ||
== Related Components == | == Related Components == | ||
[[Component:LookAtUser|Look At User]] | |||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Flip At User]] | [[Category:Components{{#translation:}}|Flip At User]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}|Flip At User]] | [[Category:Components:Transform:Drivers{{#translation:}}|Flip At User]] |
Latest revision as of 17:34, 23 October 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
The FlipAtUser component can be used to make an object face towards positive or negative Z, depending on what side of it the local user is.
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. |
UpSpace
|
direct RootSpace | the coordinate space that is used when calculating what is "up". If set to local user space, then the up direction of this component is the up direction of the slot the user is parented under, which is usually up for that user. This can be useful if a user is in a gravity direction which doesn't match the world's up direction, and will make this orient to that user's direction for a better reading experience for example. |
_rotation
|
field drive of FloatQ | The field that is driven to make the object rotate to the user. This is automatically set to the Rotation field of the slot this component is added to. |
Usage
Examples
Useful for signs or dialouge boxes.