Jump to Content
WhitestormJS FrameworkGuidesIntegrationsBlog
GuidesIntegrationsBlog
GuidesIntegrationsBlogLog InModulesTry it on CodepenWhitestormJS Framework
Guides
Log InModulesTry it on Codepen
OrbitControls
These docs are for v1.2. Click to read the latest docs for v2-beta.x.

Tutorials

  • Getting Started
  • Basic sphere («Hello World» example)
  • Loops & 3D Animation
  • Debugging
  • Groups
    • Collision filtering
  • VirtualMouse. Cursor in 3D
  • 3D transforms
  • Usage with webpack
  • Variations

Core

  • World
  • Component
  • Element
  • MeshComponent
  • PhysicsComponent
  • SoftbodyComponent
  • LightComponent
  • CameraComponent

Components | Meshes

  • Box
  • Cylinder
  • Dodecahedron
  • Extrude
  • Icosahedron
  • Lathe
  • Line
  • Model
  • Morph
  • Octahedron
  • Parametric
  • Plane
  • Polyhedron
  • Ring
  • Shape
  • Sphere
  • Tetrahedron
  • Text
  • Torus
  • Torusknot
  • Tube

Components | Lights

  • AmbientLight
  • DirectionalLight
  • HemisphereLight
  • PointLight
  • SpotLight

Components | Camera

  • PerspectiveCamera
  • OrthographicCamera
  • CubeCamera

Components | Rendering

  • RenderingModule
    • BasicRendering
    • PostProcessor

Extras

  • Controls
    • OrbitControls
    • FirstPersonControls

API

  • .extend(object, ...extensions)
  • .loadMaterial(material)
  • .texture(url, options)
Powered by 

OrbitControls

Suggest Edits

Use WHS.orbitControls if you want to look for your shape from different angles.


world.setControls(new WHS.OrbitControls());

Also can accept a target object as a first argument.

Updated less than a minute ago