Difference between revisions of "UserInterfacePositioner (Component)"

From Neos Wiki
Jump to navigation Jump to search
(+tut)
 
Line 7: Line 7:
 
|Name=User Interface Positioner
 
|Name=User Interface Positioner
 
}}
 
}}
 +
 +
The '''UserInterfacePositioner''' causes the slot to which it is attached to track the user's head position and rotation. This is a somewhat nicer and cleaner alternative than parenting a slot directly to a user's [[Avatar|avatar node]].
  
 
<!--T:2-->
 
<!--T:2-->
Line 15: Line 17:
 
|_userId|String|
 
|_userId|String|
 
|RotateVerticalOnly|Bool|
 
|RotateVerticalOnly|Bool|
|PositionSpeed|Float|
+
|PositionSpeed|Float| The speed at which the object will track the user's position.
|RotationSpeed|Float|
+
|RotationSpeed|Float| The speed at which the object will track the user's rotation.
|ActivationDistance|Float|
+
|ActivationDistance|Float| The distance from the user to the object at which the object will start tracking the user's position and rotation.  Zero means "always track".
|ActivationAngle|Float|
+
|ActivationAngle|Float| The angle between the user and the object at which the object will start tracking the user's position and rotation. Zero means "always track".
|DeactivationDistance|Float|
+
|DeactivationDistance|Float|  
 
|DeactivationAngle|Float|
 
|DeactivationAngle|Float|
 
|TargetPosition|Float3|
 
|TargetPosition|Float3|

Latest revision as of 20:14, 21 September 2021


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


User Interface Positioner component as seen in the Scene Inspector

The UserInterfacePositioner causes the slot to which it is attached to track the user's head position and rotation. This is a somewhat nicer and cleaner alternative than parenting a slot directly to a user's avatar node.

Fields

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
User User
_machineId String
_userId String
RotateVerticalOnly Bool
PositionSpeed Float The speed at which the object will track the user's position.
RotationSpeed Float The speed at which the object will track the user's rotation.
ActivationDistance Float The distance from the user to the object at which the object will start tracking the user's position and rotation. Zero means "always track".
ActivationAngle Float The angle between the user and the object at which the object will start tracking the user's position and rotation. Zero means "always track".
DeactivationDistance Float
DeactivationAngle Float
TargetPosition IField<float3>
TargetRotation IField<floatQ>
_position IField`1
_rotation IField`1

Usage

Examples

Related Components