August 2018
Intermediate to advanced
528 pages
10h 58m
English
We've already learned that to create a mesh, we need a geometry and one or more materials. Once we have a mesh, we add it to the scene and it's rendered. There are a couple of properties you can use to change where and how this mesh appears on the scene. In this first example, we'll look at the following set of properties and functions:
|
Function/Property |
Description |
|
position |
This determines the position of this object relative to the position of its parent. Most often, the parent of an object is a THREE.Scene object or a THREE.Object3D object. |
|
rotation |
With this property, you can set the rotation of an object around any of its axes. Three.js also provides specific functions for rotations ... |
Read now
Unlock full access