FERRETGame engine over Babylon.js
Ferret

API reference

Generated from the source of every package, so it matches the code. Each export has its signature, its doc comment and its members; type names link to where they are defined.

Core

Gameplay

World and content

accountsThe player's account in the game's own process: sign-in, session, balances, a gateway for net.8 exportseditorLevel editing as commands and patches, for people and for AI agents; sessions and packages.21 exportshumansPeople and anthropomorphic characters from a spec: faces from words or a picture, clothes, kits and species, gait clips, crowds, glb bake, the humans.* commands and the viewer.374 exportsinspectorDeveloper commands over the world: entity tree, component values, physics view, stats.7 exportslevelsLevel manifests, the level registry, load, unload and travel, environment and the .ferret package format.344 exportsmediaAudio: buses, sounds in the world, synthesised sounds as recipes with live parameters, pass-bys, presets, mute and a limiter; ambient zones, video surfaces (HLS/MP4 to texture) and HTML surfaces; recording, and frame-by-frame capture on simulated time to WebM or PNG.123 exportsnetReplication over pluggable transports; multiplayer: players, scopes and rooms, avatars with looks, channels, locks, authority, state for latecomers; the Unreal presence wire; gateways to a game's backend, the Camerlengo link.63 exportsperspectiveDrawing and animating by size on the screen: a ladder of full model, simpler mesh, baked impostor, dot and nothing, with cross-fades, a budget, a frame-time governor, animated impostors and measured thresholds.99 exportsspeechText to speech and speech to text on the Camerlengo API: lines spoken at an entity on the voice bus, a cache of synthesised lines, microphone capture and recognition, by the signed-in player's session; events and speech.* commands.27 exportsterrainLandscapes from a description: relief as a pure height function (noise, shapes, erosion, rivers, lakes, edits), climate and 25 biomes, the ground query, the chunk view, rocks and plants made in code, icebergs with real buoyancy, mountain hazards and the ground in the physics world.208 exportsvfxSpecial effects: fire and smoke, explosions and weapons, water, steam and dust, energy. Effects are JSON definitions with parameters and expressions, drawn on a ladder of volume, GPU particles, impostors and dots, fed by the physics events or placed by hand, with their sound, and acting on sight, light and fire spread.353 exportsviewPresentation views of a scene: section (cutaway) planes cut meshes on the GPU, with hatched caps on the cut faces; camera limits: keep off things, stay in a region, over a floor.27 exportsweatherThe weather and what it does: states and presets, clouds by genus, rain, snow and hail, lightning and thunder, blizzards; the storm sea with whitecaps and freak waves, the surf on sand, cobble, boulder and rock shores; rivers with rapids and waterfalls; wind on trees (sway, limbs, snapping, uprooting) and on grass; sand and dust storms, haboobs, the simoom; tornadoes, dust devils and waterspouts.241 exports

Physics: kernel

Physics: mechanics

destructionthings that break by physics or by a style of their own: crush zones, glass, wood, stone, links, cars, debris, energy ledger, replication by seed.337 exportsflowwind, fronts, vortices, jets, shelters and channels as one field of moving air and water, without physics.58 exportsflow-solverflow boxes: a solved 2d slice of air or water round bodies (staggered grid, pressure projection) that publishes its wake into the flow field and pushes bodies by surface pressure.16 exportsphysics-actuatorsforces, impulses, torques and motors at points of bodies on a schedule: profiles over time, angle, phase or a sensor.37 exportsphysics-enginessteam cylinders with valve gear by crank angle, multi-cylinder piston engines with firing order, ignition and fuel controls, inertia forces on the mounts, and the engine words of the motion language.16 exportsphysics-frictionfriction dialled by scope, rolling and pivot friction.2 exportsphysics-gravitygravity as a field with uniform vectors per scope and point attractors.4 exportsphysics-impactelastic and inelastic collisions, rest thresholds, sticking, impact events.4 exportsphysics-mediawater, mud, wind and air as media with drag, buoyancy and flow; the standard atmosphere.20 exportsphysics-rotorblades, paddles and buckets around an axis turning wind and water into torque, and the blade actuator: a plate in a medium.20 exportsphysics-strengthfinite strength: bodies that take damage and break into pieces, links that break.6 exportsphysics-stretchsprings, ropes and bands that stretch and tear; cloth and soft bodies by position-based dynamics.17 exportsphysics-terrainlayered soil height field that can be dug, filled, slumps and floods; sinkage; tunnels; terrain as kernel meshes.22 exports

Physics: matter and energy

Physics: machines and vehicles

Physics: glue and look

Other