v3.0.16
github-actions
released this
06 Jul 20:59
·
4029 commits
to develop
since this release
π Improvements
- Added the
uv
property to@onClick
,@onAnyBotClicked
,@onDrag
, and@onAnyBotDrag
shouts.- This property contains the UV Coordinates of the texture on the clicked bot that the user clicked.
- UV coordinates are a 2D vector representing the X and Y location on the texture (i.e.
formAddress
) on the bot that was clicked. - UV coordinates are mapped as follows:
- Bottom left of the texture is:
(0, 0)
- Bottom right is:
(1, 0)
- Top left is:
(0, 1)
- Top right is:
(1, 1)
- Bottom left of the texture is:
- Added the
os.raycast(portal, origin, direction)
andos.raycastFromCamera(portal, viewportPosition)
functions.- These functions are useful for finding what bots a particular ray would hit. For example, you could query what bots are under a particular spot of the screen with
os.raycastFromCamera()
. - Currently, the
grid
,miniGrid
,map
andminiMap
portals are supported. - See the documentation for more information and examples.
- These functions are useful for finding what bots a particular ray would hit. For example, you could query what bots are under a particular spot of the screen with
- Added the
os.calculateRayFromCamera(portal, viewportPosition)
function.- This function is useful for finding the 3D path (ray) that travels through a particular screen position of the specified portal's camera.
- Currently, the
grid
,miniGrid
,map
andminiMap
portals are supported. - See the documentation for more information and examples.
- Improved
os.getPublicRecordKey()
to return anerrorReason
for failed requests.
π Bug Fixes
- Fixed
lineStyle = wall
to support the coordinate system changes from v3.0.11.