Skip to content
Snippets Groups Projects
index.md 15.59 KiB

Component Docs

Systems

app-mode

Simple system for keeping track of a modal app state

src/systems/app-mode.js

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

character-controller

Avatar movement controller that listens to move, rotate and teleportation events and moves the avatar accordingly. The controller accounts for playspace offset and orientation and depends on the nav mesh system for translation.

src/components/character-controller.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