Headset

Summary

The user's headset

Class Methods

Headset:ResizeHistory(size)

Clears the history and sets it's size

Returns: nil

Parameters:

NameTypeDefaultDescription

size

number

How many frames of position/rotation to remember

Example

Headset:ResizeHistory(4)

Headset:SetHistorySize(size)

Sets the size of the history. Only clears it if the size has changed

Returns: nil

Parameters:

NameTypeDefaultDescription

size

number

How many frames of position/rotation to remember

Example

Headset:SetHistorySize(4)

Headset:PastPosition(back)

Recalls previous positions of the Headset from the history buffer

Returns: Vector3

Parameters:

NameTypeDefaultDescription

back

number

How many frames back in the history to look

Example

Headset:PastPosition(4)

Headset:PastRotation(back)

Recalls previous orientations of the Headset from the history buffer

Returns: Rotation

Parameters:

NameTypeDefaultDescription

back

number

How many frames back in the history to look

Example

Headset:PastRotation(4)

Last updated