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,
});
const scene = new ARScene({
spatial: true,
maxObjects: 100,
});
Copy
AR3.1.0