Skip to content

Latest commit

 

History

History
481 lines (271 loc) · 12.6 KB

index.md

File metadata and controls

481 lines (271 loc) · 12.6 KB

Component Docs

Systems

exit-on-blur

Emits an "exit" event when a user has stopped using the app for a certain period of time

src/systems/exit-on-blur.js

personal-space-bubble

Iterates through bubbles and invaders on every tick and sets invader state accordingly. testing multiline things

src/systems/personal-space-bubble.js

Components

misc

animation-mixer

Instantiates and updates a THREE.AnimationMixer on an entity.

src/components/animation-mixer.js

matcolor-audio-feedback

Sets an entity's color base on audioFrequencyChange events.

src/components/audio-feedback.js

css-class

Sets the CSS class on an entity.

src/components/css-class.js

duck

Floats a duck based on its scale.

src/components/duck.js

event-repeater

Listens to events from an event source and re-emits them on this entity

src/components/event-repeater.js

loop-animation

Loops the given clip using this entity's animation mixer

src/components/loop-animation.js

offset-relative-to

Positions an entity relative to a given target when the given event is fired.

src/components/offset-relative-to.js

avatar

networked-audio-analyser

Emits audioFrequencyChange events based on a networked audio source

src/components/audio-feedback.js

scale-audio-feedback

Sets an entity's scale base on audioFrequencyChange events.

src/components/audio-feedback.js

avatar-replay

Replays a recorded motion capture with the given avatar body parts

src/components/avatar-replay.js

bone-mute-state-indicator

Toggles the position of 2 bones into "on" and "off" positions to indicate mute state.

src/components/bone-mute-state-indicator.js

bone-visibility

Scales an object to near-zero if the object is invisible. Useful for bones representing avatar body parts.

src/components/bone-visibility.js

hand-pose

Animates between poses based on networked pose state using an animation mixer.

src/components/hand-poses.js

hand-pose-controller

Sets the networked hand pose state based on hand-pose events.

src/components/hand-poses.js

ik-root

Provides access to the end effectors for IK.

src/components/ik-controller.js

ik-controller

Performs IK on a hip-rooted skeleton to align the hip, head and hands with camera and controller inputs.

src/components/ik-controller.js

networked-avatar

Stores networked avatar state.

src/components/networked-avatar.js

player-info

Sets player info state, including avatar choice and display name.

src/components/player-info.js

spawn-controller

Used on a avatar-rig to move the avatar to a random spawn point on entry.

src/components/spawn-controller.js

network

block-button

Registers a click handler and invokes the block method on the NAF adapter for the owner associated with its entity.

src/components/block-button.js

freeze-controller

Toggles freezing of network traffic on the given event.

src/components/freeze-controller.js

mute-mic

Toggles the microphone on the current network connection based on the given events.

src/components/mute-mic.js

networked-counter

Limits networked interactables to a maximum number at any given time

src/components/networked-counter.js

networked-video-player

Instantiates and plays a network video stream, setting the video as the source material for this entity.

src/components/networked-video-player.js

super-spawner

Spawns networked objects when grabbed.

src/components/super-spawner.js

user-input

cardboard-controls

Polls the Gamepad API for Cardboard Button input and emits cardboardbutton events.

src/components/cardboard-controls.js

cursor-controller

Controls virtual cursor behavior in various modalities to affect teleportation, interatables and UI.

src/components/cursor-controller.js

hand-controls2

Converts events from various 6DoF and 3DoF controllers into hand-pose events.

src/components/hand-controls2.js

virtual-gamepad-controls

Instantiates 2D virtual gamepads and emits associated events.

src/components/virtual-gamepad-controls.js

wasd-to-analog2d

Converts WASD keyboard inputs to simulated analog inputs.

src/components/wasd-to-analog2d.js

gltf

gltf-bundle

Instantiates GLTF models as specified in a bundle JSON.

src/components/gltf-bundle.js

gltf-model-plus

Loads a GLTF model, optionally recursively "inflates" the child nodes of a model into a-entities and sets allowed components on them if defined in the node's extras.

src/components/gltf-model-plus.js

environment

hide-when-quality

Hides entities based on the scene's quality mode

src/components/hide-when-quality.js

layers

Sets layer flags on the underlying Object3D

src/components/layers.js

scene-shadow

For use in environment gltf bundles to set scene shadow properties.

src/components/scene-shadow.js

spawn-point

Marks an entity as a potential spawn point.

src/components/spawn-controller.js

ui

hud-controller

Positions the HUD and toggles app mode based on where the user is looking

src/components/hud-controller.js

icon-button

A button with an image, tooltip, and hover states.

src/components/icon-button.js

in-world-hud

HUD panel for muting, freezing, and space bubble controls.

src/components/in-world-hud.js

text-button

A button with text

src/components/text-button.js

visible-while-frozen

Toggles the visibility of this entity when the scene is frozen.

src/components/visible-while-frozen.js

ui-class-while-frozen

Toggles the interactivity of a UI entity while the scene is frozen.

src/components/visible-while-frozen.js

vr-mode

vr-mode-toggle-visibility

Toggle visibility of an entity based on if the user is in vr mode or not

src/systems/app-mode.js

vr-mode-toggle-playing

Toggle the isPlaying state of a component based on app mode

src/systems/app-mode.js

avatar/personal-space-bubble

personal-space-invader

Represents an entity that can invade a personal space bubble

src/systems/personal-space-bubble.js

personal-space-bubble

Represents a personal space bubble on an entity.

src/systems/personal-space-bubble.js