UxrManager.MoveAvatarTo Method (UxrAvatar, Vector3, Boolean)
Moves an avatar to a new position on the floor, keeping the same viewing direction. The eye level is maintained.
Namespace: UltimateXR.Core
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public void MoveAvatarTo(
UxrAvatar avatar,
Vector3 newFloorPosition,
bool propagateEvents = true
)
Parameters
- avatar
- Type: UltimateXR.Avatar.UxrAvatar
The avatar to move - newFloorPosition
- Type: Vector3
The position on the floor above which the avatar’s camera will be positioned. Coordinates need to be specified at ground level since the eye camera level over the floor will be maintained. - propagateEvents (Optional)
- Type: System.Boolean
Whether to propagate AvatarMoving/AvatarMoved events
See Also
Reference
UxrManager Class
MoveAvatarTo Overload
UltimateXR.Core Namespace