Orbit Camera - Playcanvas Typing CST Test
Loading…
Orbit Camera — Playcanvas Code
Sets up a camera orbiting the origin automatically.
# playcanvas/demo/orbit_camera.js
const app = new pc.Application(document.getElementById('canvas'));
app.start();
const camera = new pc.Entity();
camera.addComponent('camera');
camera.setPosition(0, 5, 10);
app.root.addChild(camera);
app.on('update', function(dt) {
const t = Date.now() * 0.001;
camera.setPosition(Math.sin(t) * 10, 5, Math.cos(t) * 10);
camera.lookAt(pc.Vec3.ZERO);
});Playcanvas Language Guide
PlayCanvas is a powerful, open-source 3D game engine and interactive content platform that runs entirely in the browser using WebGL/WebGPU. It enables real-time 3D games, simulations, AR/VR, and interactive visualizations without plugins.
Primary Use Cases
- ▸Web-based 3D games and interactive experiences
- ▸AR/VR content via WebXR
- ▸3D product configurators and demos
- ▸Online simulations and training platforms
- ▸Real-time collaborative 3D editors
Notable Features
- ▸Real-time collaborative cloud editor
- ▸WebXR and VR/AR support
- ▸Physically based rendering (PBR)
- ▸Animation and particle systems
- ▸Asset pipeline with textures, models, and scripts
Origin & Creator
PlayCanvas was originally created by Will Eastcott and Dave Evans in 2011, with ongoing development led by PlayCanvas Ltd.
Industrial Note
PlayCanvas is increasingly used in automotive configurators, online product visualizations, e-learning 3D content, browser-based games, and AR/VR experiences, reducing the need for native apps.