Component:PositionAtUser: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page PositionAtUser (Component) to Component:PositionAtUser: Creating component Namespace
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
|Name=PositionAtUser
|Name=PositionAtUser
}}
}}
== Intoduction ==
The '''PositionAtUser''' component drives the values in <code>PositionDrive</code> and <code>RotationDrive</code> to match the user's position and rotation as determined by the settings in <code>PositionSource</code> and <code>RotationSource</code> respectively.  
The '''PositionAtUser''' component drives the values in <code>PositionDrive</code> and <code>RotationDrive</code> to match the user's position and rotation as determined by the settings in <code>PositionSource</code> and <code>RotationSource</code> respectively.  
== Usage ==
== Usage ==
Line 16: Line 15:
|PositionOffset|Float3| Position offset in global space units
|PositionOffset|Float3| Position offset in global space units
|RotationOffset|FloatQ| Rotation offset in global space units
|RotationOffset|FloatQ| Rotation offset in global space units
|PositionSource|UserRoot.UserNode|TypeString6=UserNode| The user node that the position will be calculated from
|PositionSource|UserNode| The user node that the position will be calculated from
|RotationSource|UserRoot.UserNode|TypeString7=UserNode| The user node that the rotation will be calculated from
|RotationSource|UserNode| The user node that the rotation will be calculated from
|PositionDrive|Float3| Target Float3 to drive with the calculated position value
|PositionDrive|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv8=true| Target Float3 to drive with the calculated position value
|RotationDrive|FloatQ| Target FloatQ to drive with the calculated rotation value.
|RotationDrive|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv9=true| Target FloatQ to drive with the calculated rotation value.
}}
}}
== Behavior ==
== Behavior ==
Line 25: Line 24:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|PositionAtUser (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Position At User]]
[[Category:Components:Transform:Drivers{{#translation:}}|PositionAtUser (Component){{#translation:}}]]
[[Category:Components:Transform:Drivers{{#translation:}}|Position At User]]

Latest revision as of 22:09, 23 May 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
PositionAtUser component as seen in the Scene Inspector

The PositionAtUser component drives the values in PositionDrive and RotationDrive to match the user's position and rotation as determined by the settings in PositionSource and RotationSource respectively.

Usage

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.
TargetUser User The user that will be used to calculate the parent slot position, unless PositionAtLocalUser is selected.
PositionAtLocalUser Bool Position the parent slot at the Local User of each client, ignoring the value in TargetUser
TargetPositionOffset Float3 Position offset in the user's local space units. Respects the user's current scale and transforms.
TargetRotationOffset FloatQ Rotation offset in the user's local space unit. Respects the user's current scale and transforms.
PositionOffset Float3 Position offset in global space units
RotationOffset FloatQ Rotation offset in global space units
PositionSource UserNode The user node that the position will be calculated from
RotationSource UserNode The user node that the rotation will be calculated from
PositionDrive field drive of Float3 Target Float3 to drive with the calculated position value
RotationDrive field drive of FloatQ Target FloatQ to drive with the calculated rotation value.

Behavior

Examples

Related Components