eggisasa / Docs

AR3.1 API Reference

Detailed technical documentation for working with the AR3.1 framework. Includes class definitions, method references, and usage examples.

Core API Framework

ARSession Class

Manages AR application lifecycle, feature initialization, and core engine configuration.

ARAnchor System

Manages spatial anchors and persistent object referencing in AR environments.

const anchor = new ARAnchor({
    position: {x:2.3, y:0.5, z:-1.2},
    persistent: true,
    lifetime: 7200
});

anchor.on('positionChange', (event) => {
    console.log('Anchor Updated:', event.data);});
                    

arRenderer Module

High-performance rendering pipeline with advanced lighting and physics simulation.

Versioning Guide

Feature AR3-1 ar3-2 (Beta)
Persistent Anchors โœ“ 30m range โœ“ 100m range
Multiuser Sync โœ“ 50ms latency โœ“ 30ms latency
Depth Buffer โœ“ 24-bit โœ“ 32-bit

Usage Examples

// Create AR Scene
const scene = new ARScene({
spatial: true,
maxObjects: 100,
});
Copy AR3.1.0