Skip to main content

ARCursor

This is manually transcribed.

Player

The name of the player the cursor is for.

It is a string

UserId

The user ID of the player.

It is a number

Origin

A CFrame indicating where the mouse originated from. It is positioned at the camera and oriented toward the mouse's 3D position.

It is a Vector3

UnitRay

A Ray directed toward the mouse's position in 3D space. It originates from the CFrame of the camera. Like all unit rays, it has a magnitude of 1.

It is a Ray

WorldPosition

The world position of the mouse cursor.

It is a Vector3

Target

The PartObject that is being hovered over. You can call methods on this part!

It is a PilotObject

Pressed

A boolean for whether or not the mouse button is pressed.

It is a boolean

UserInput

A table of input data (would suggest printing with repr) - Contains Mouse, Keyboard, Gamepad, VREnabled, KeyboardEnabled, TouchEnabled, GamepadEnabled, and LastInputType.

It is an ARInput

ScreenPosition

The XY screen position of the mouse cursor.

It is a Vector2

UserCFrames

Contains Head, LeftHand, and RightHand CFrames for VR.

The CFrame of the user's head

Right Hand

The CFrame of the user's right hand

Left Hand

The CFrame of the user's left hand

X

The X position of the cursor on the screen.

It is a number

Y

The Y position of the cursor on the screen.

It is a number

VirtualWorldPosition

The world position of the mouse cursor in the virtual 3D space.

It is a Vector3

Hit

The CFrame the user's mouse is located at.

It is a CFrame

VirtualTarget

The hovered part in the virtual 3D space.

It is a BasePart

MouseDelta

The current chane in position of the mouse for the frame that was sent.

It is a Vector2

Camera

The camera of the player associated with the mouse.

It is an ARCamera