Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 2.5 KB

README.md

File metadata and controls

65 lines (46 loc) · 2.5 KB

@playcanvas/react

Version Discord Twitter Issues

Docs | Guide | Examples

A lightweight, library for for creating 3D apps in React that supports Physics, Pointer Events, Gaussian Splats and a built-in Scripts out of the box.

image

Getting Started

Install with your favorite package manager...

npm install @playcanvas/react react react-dom playcanvas

Create a sphere component

import { Application, Entity } from '@playcanvas/react'
import { Camera } from "@playcanvas/react/components"
import { OrbitControls } from "@playcanvas/react/scripts"

const App = () => {
  return (
    <Application>
        <Entity position={[0, 2, 0]}>
          <Camera/>
          <OrbitControls />
        </Entity>
        <Entity >
          <Render type="sphere" />
        </Entity>
    </Application>
  );
}

Et voilà! ✨

The library is built around the PlayCanvas engine and comes with lots of features for creating more complex content including...

  • 🎭 Simple Scene API
  • ⏳ Suspenseful Asset loading
  • ️👆 Pointer Events
  • 🛠️ Physics out of the box
  • ⚡ Script component for high frequency updates
  • 🏗️ Entity Component System

Learn more

To find out more, check the Getting Started guide for a walk through, or see the other examples in the Playground.