v3.1.2
github-actions
released this
09 Sep 20:19
·
3748 commits
to develop
since this release
π Improvements
- Improved
os.registerTagPrefix(prefix, options?)
to accept aname
property in theoptions
object that will be used as a hint for the user. - Added support for Vector and Rotation values for many tags. The following tags have been added as alternatives to using multiple tags to contain 3D information:
cameraPosition
replacescameraPositionX
,cameraPositionY
, andcameraPositionZ
.cameraRotation
replacescameraRotationX
,cameraRotationY
, andcameraRotationZ
.cameraFocus
replacescameraFocusX
,cameraFocusY
, andcameraFocusZ
.cameraPositionOffset
replacescameraPositionOffsetX
,cameraPositionOffsetY
, andcameraPositionOffsetZ
.cameraRotationOffset
replacescameraRotationOffsetX
,cameraRotationOffsetY
, andcameraRotationOffsetZ
.deviceRotation
replacesdeviceRotationX
,deviceRotationY
, anddeviceRotationZ
.portalPannableMin
replacesportalPannableMinX
andportalPannableMinY
.portalPannableMax
replacesportalPannableMaxX
andportalPannableMaxY
.pointerPixel
replacespointerPixelX
andpointerPixelY
.mousePointerPosition
replacesmousePointerPositionX
,mousePointerPositionY
, andmousePointerPositionZ
.mousePointerRotation
replacesmousePointerRotationX
,mousePointerRotationY
, andmousePointerRotationZ
.leftPointerPosition
replacesleftPointerPositionX
,leftPointerPositionY
, andleftPointerPositionZ
.leftPointerRotation
replacesleftPointerRotationX
,leftPointerRotationY
, andleftPointerRotationZ
.rightPointerPosition
replacesrightPointerPositionX
,rightPointerPositionY
, andrightPointerPositionZ
.rightPointerRotation
replacesrightPointerRotationX
,rightPointerRotationY
, andrightPointerRotationZ
.cursorHotspot
replacescursorHotspotX
andcursorHotspotY
.portalCursorHotspot
replacesportalCursorHotspotX
andportalCursorHotspotY
.
- Added the
os.requestWakeLock()
,os.disableWakeLock()
, andos.getWakeLockConfiguration()
functions.os.requestWakeLock()
asks the user for the ability to keep the screen awake, and if they accept will enable a wake lock that will keep the screen on. Returns a promise that resolves once the wake lock has been granted.os.disableWakeLock()
disables the wake lock and allows the computer to sleep. Returns a promise that resolves once the wake lock has been disabled.os.getWakeLockConfiguration()
gets the current wake lock status. Returns a promise that resolves with the wake lock information.
- Improved
math.intersectPlane()
to accept two additional optional parameters which represent the normal and origin of the plane that the ray should be intersected with.- The new function definition is
math.intersectPlane(origin, direction, planeNormal?, planeDirection)
.planeNormal
is optional and is the normal vector that the plane should use. It defaults toβ‘οΈ0,0,1
.planeDirection
is optional and is the 3D position that the center of the plane should travel through. It defaults toβ‘οΈ0,0,0
.
- The new function definition is
π Bug Fixes
- Fixed an issue where keys reported in
onKeyUp
andonKeyDown
could be specified in the incorrect order.