1. Home
  2. /
  3. Playcanvas
  4. /
  5. Rotating Cylinder

Rotating Cylinder - Playcanvas Typing CST Test

Loading…

Rotating Cylinder — Playcanvas Code

Adds a rotating cylinder to the scene.

# playcanvas/demo/cylinder.js
const app = new pc.Application(document.getElementById('canvas'));
app.start();

const cylinder = new pc.Entity();
cylinder.addComponent('model', { type: 'cylinder' });
app.root.addChild(cylinder);

app.on('update', function(dt) {
	cylinder.rotate(30 * dt, 0, 0);
});

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.

More Playcanvas Typing Exercises

Simple PlayCanvas ScenePlayCanvas Spinning SpherePlayCanvas Directional LightPlayCanvas Ground PlanePlayCanvas Multiple CubesPlayCanvas Orbit CameraPlayCanvas Textured CubePlayCanvas Bouncing SpherePlayCanvas Directional Light Shadow

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher