UxrAvatarMoveEventArgs Class

Contains information about an UxrAvatar that has moved/rotated. Avatars are moved/rotated through UxrManager functionality such as:  

  These methods will move/rotate the root transform of the avatar. If a user moves or rotates in the real-world, the camera transform will be updated but the root avatar transform will remain fixed. Only moving or teleporting the avatar will generate UxrAvatarMoveEventArgs events.

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

NameDescription
Public methodUxrAvatarMoveEventArgs Constructor.

Properties

NameDescription
Public propertyHasRotation Gets whether the avatar has changed its rotation.
Public propertyHasTranslation Gets whether the avatar has changed its position.
Public propertyNewForward Gets the new UxrAvatar forward vector.
Public propertyNewPosition Gets the new UxrAvatar position.
Public propertyNewRotation Gets the new UxrAvatar rotation.
Public propertyNewWorldMatrix Gets the new UxrAvatar local to world matrix.
Public propertyOldForward Gets the old UxrAvatar forward vector.
Public propertyOldPosition Gets the old UxrAvatar position.
Public propertyOldRotation Gets the old UxrAvatar rotation.
Public propertyOldWorldMatrix Gets the old UxrAvatar local to world matrix.

Methods

NameDescription
Public methodReorientRelativeToAvatar Reorients and repositions a transform so that it keeps the relative position/orientation to the avatar after the position changed event.

Extension Methods

NameDescription
Public Extension MethodThrowIfNull Throws an exception if the object is null. (Defined by ObjectExt.)

See Also

Reference

UltimateXR.Avatar Namespace