UxrAvatarMoveEventArgs Class
Contains information about an UxrAvatar that has moved/rotated. Avatars are moved/rotated through UxrManager functionality such as:
- UxrManager.Instance.MoveAvatarTo
- UxrManager.Instance.RotateAvatar
- UxrManager.Instance.TeleportLocalAvatar
Inheritance Hierarchy
System.Object
System.EventArgs
UltimateXR.Avatar.UxrAvatarEventArgs
UltimateXR.Avatar.UxrAvatarMoveEventArgs
Namespace: UltimateXR.Avatar
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public class UxrAvatarMoveEventArgs : UxrAvatarEventArgs
The UxrAvatarMoveEventArgs type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrAvatarMoveEventArgs | Constructor. |
Properties
Name | Description | |
---|---|---|
HasRotation | Gets whether the avatar has changed its rotation. | |
HasTranslation | Gets whether the avatar has changed its position. | |
NewForward | Gets the new UxrAvatar forward vector. | |
NewPosition | Gets the new UxrAvatar position. | |
NewRotation | Gets the new UxrAvatar rotation. | |
NewWorldMatrix | Gets the new UxrAvatar local to world matrix. | |
OldForward | Gets the old UxrAvatar forward vector. | |
OldPosition | Gets the old UxrAvatar position. | |
OldRotation | Gets the old UxrAvatar rotation. | |
OldWorldMatrix | Gets the old UxrAvatar local to world matrix. |
Methods
Name | Description | |
---|---|---|
ReorientRelativeToAvatar | Reorients and repositions a transform so that it keeps the relative position/orientation to the avatar after the position changed event. |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |