Component:PositionAtUser

From Resonite Wiki
(Redirected from PositionAtUser (Component))
This page contains changes which are not marked for translation.


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