@casual-simulation/aux-vm-client
Advanced tools
Changelog
V1.0.22
:boom: Breaking Changes
player.inSheet()
function has been changed to return whether the player bot has a dimension in their auxSheetPortal
.
@onUniverseAction
have changed.
@onUniverseAction
was run before any particular action was executed but the actions that were dispatched from @onUniverseAction
were run after the evaluated actions. This led to a scenario in which a @onUniverseAction
call could overwrite values that were updated by an action that had not been checked yet.@onUniverseAction
are executed before the action that is being evaluated. This makes the behavior of the data produced by @onUniverseAction
mirror the runtime behavior of @onUniverseAction
.:rocket: Features
setTimeout()
and setInterval()
.
@onBotChanged
, @onBotTagChanged()
, etc.)responseShout
. (e.g. const response = await webhook.post("https://example.com", data)
)error
space.
error
space contains bots that represent errors that have occurred scripts in a universe.error
space does not load all of its bots into the universe automatically.error
space is only used for storing errors and there is no way to load bots from the space.:bug: Bug Fixes
Changelog
V1.0.20
:rocket: Improvements
#auxPointable
tag to determine whether a bot can interact with pointers.
true
.false
, the bot won't be clickable or hoverable and will not receive drop events.#auxPositioningMode
it is still possible to stack bots on top of it though.@onFocusEnter
, @onFocusExit
, @onAnyFocusEnter
and @onAnyFocusExit
listen tags.
#auxFocusable
tag to determine whether a bot is focusable.that
is an object with the following properties:
dimension
- The dimension that the the bot was (un)focused in.bot
- The bot that was (un)focused.nothing
aux form.
nothing
form has no shape and is unable to be clicked, hovered, or focused.#auxPortalShowFocusPoint
tag.
:bug: Bug Fixes
Changelog
V1.0.19
:rocket: Improvements
that
/data
values in listeners.
that.bot.tags.abc = 123
instead of setTag(that.bot, "abc", 123)
.@onGridUp
and @onGridDown
listeners.
that
is an object with the following properties:
dimension
- The dimension that the grid was clicked in.position
- The X and Y position that was clicked.@onFileUpload
listener.
that
is an object with the following properties:
file
is an object with the following properties:
name
- The name of the file.size
- The size of the file in bytes.data
- The data contained in the file.player.importAux()
function to support importing directly from JSON.
player.importAux()
will behave the same as before (download and import).player.importAux()
will simply import it directly.:bug: Bug Fixes
Changelog
V1.0.18
:rocket: Improvements
@onMaxLODEnter
, @onMinLODEnter
, @onMaxLODExit
, @onMinLODExit
are new listeners that are called when the Max and Min Level-Of-Detail states are entered and exited. There are also "any" versions of these listeners.
that
is an object with the following properties:
bot
- The bot that entered/exited the LOD.dimension
- The dimension that the LOD was entered/exited in.#auxMaxLODThreshold
and #auxMinLODThreshold
tags can be used to control when the LODs are entered/exited.
:robot: Builder Improvements
:bug: Bug Fixes
Changelog
V1.0.17
:boom: Breaking Changes
auxAnchorPoint
values.
centerFront
to front
.centerBack
to back
.bottomFront
, bottomBack
, topFront
, and topBack
.:rocket: Improvements
#auxAnchorPoint
to use a custom offset.:bug: Bug Fixes
billboardZ
to rotate with the Y axis of the bot facing upwards.Changelog
V1.0.16
:boom: Breaking Changes
#auxAnchorPoint
has been changed to move the bot form inside of its virtual spacing box.
#auxOrientationMode
billboardX
option to billboardZ
.:rocket: Improvements
#auxAnchorPoint
centerFront
- Positions the bot form such that the center of the form's front face is at the center of the virtual bot.centerBack
- Positions the bot form such that the center of the form's back face is at the center of the virtual bot.bottomFront
- Positions the bot form such that the bottom of the form's front face is at the center of the virtual bot.bottomBack
- Positions the bot form such that the bottom of the form's back face is at the center of the virtual bot.top
- Positions the bot form such that the top of the form is at the center of the virtual bot.topFront
- Positions the bot form such that the top of the form's front face is at the center of the virtual bot.topBack
- Positions the bot form such that the top of the form's back face is at the center of the virtual bot.:bug: Bug Fixes
#auxAnchorPoint
is set to center
.Changelog
V1.0.15
:boom: Breaking Changes
iframe
#auxForm
.
auxIframe
auxIframeX
auxIframeY
auxIframeZ
auxIframeSizeX
auxIframeSizeY
auxIframeRotationX
auxIframeRotationY
auxIframeRotationZ
auxIframeElementWidth
auxIframeScale
#auxOrientationMode
to billboard
.:rocket: Improvements
@onPlayerPortalChanged
to support auxLeftWristPortal
and auxRightWristPortal
.iframe
option for #auxForm
.
iframe
has two subtypes:
html
- This #auxFormSubtype
displays the HTML in #auxFormAddress
in the iframe. (Default)src
- This #auxFormSubtype
displays the URL in #auxFormAddress
in the iframe.#auxAnchorPoint
and #auxOrientationMode
tags.
#auxAnchorPoint
determines the point that the bot scales and rotates around.
bottom
- The bot rotates and scales around its bottom point. (Default)center
- The bot rotates and scales around its center point.#auxOrientationMode
determines how the bot rotates.
absolute
- Rotation is taken from the dimension rotation values. (Default)billboard
- The bot rotates automatically to face the player.billboardX
- The bot rotates left and right automatically to face the player.billboardZ
- The bot rotates up and down automatically to face the player.#auxPortalPointerCollisionMode
tag on a portal config.
world
- The mouse pointer collides with other bots in the world when being dragged. (Default)grid
- The mouse pointer ignores other bots in the world when being dragged.#auxFormAnimation
tag.
false
to stop animating.:robot: Builder Improvements
.aux
will try to download the file at the URL and import it as an AUX file.:book: Documentation
:bug: Bug Fixes
player.downloadUniverse()
to only include bots from the shared space.Changelog
V1.0.14
:rocket: Features
#auxLeftWristPortal
is attached to the left controller and #auxRightWristPortal
is attached to the right controller.#auxLeftWristPortalConfigBot
and #auxRightWristPortalConfigBot
tags.#auxPortalGridScale
- Changes the size of the grid for the portal. (Defaults to 0.025
for wrist portals)#auxWristPortalHeight
- The height of the portal in grid elements. (Defaults to 6
)#auxWristPortalWidth
- The width of the portal in grid elements. (Defaults to 6
):bug: Bug Fixes
#auxPortalGridScale
tag to function improperly.Changelog
V1.0.12
Changelog
V1.0.10
Added Basic WebXR Support
player.device()
function returns whether AR/VR are supported.player.enableAR()
and player.enableVR()
functions are used to jump into AR/VR.#auxPositioningMode
set to absolute
will move it in free space.:bug: Bug Fixes
auxUniverse
and auxPagePortal
query parameters.