Three.js 003Transform Objects

Summary

  • Added Group instances and assigned cubes to them.
  • Set position with group.position.x(.y,.z)
  • Set scale with group.scale.x(.y,.z)
  • Set position with group.position.set(x, y, z)
  • Set rotation with mesh.rotation.x(.y) and mesh.rotation.reorder()
  • mesh.position.normalize()
  • mesh.position.length()
  • mesh.position.distanceTo(camera.position)
  • Added AxesHelper

Loading...

Open example in a new tab.

Links