UxrManager.MoveAvatarTo Method (UxrAvatar, Vector3, Vector3, Boolean)

Moves an avatar to a new position on the floor and a 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,
	Vector3 newForward,
	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.
newForward
Type: Vector3
The new viewing direction of the avatar, including the camera.
propagateEvents (Optional)
Type: System.Boolean
Whether to propagate AvatarMoving/AvatarMoved events

See Also

Reference

UxrManager Class
MoveAvatarTo Overload
UltimateXR.Core Namespace