Object3D
Tip
This course was updated in 2024. For the newer content, please visit Object3D
Video Lecture
Description
Object3D is the base class for many objects in Three.js provides methods and properties for manipulating objects in 3D space.
Most common examples are Meshes, Lights, Cameras and Groups of Object3Ds.
The full list of methods and properties can be found in the Three.js documentation at THREE.Object3D
In this video I will demonstrate the most common things you will do with an Object3D and that is change,
- Rotation
- Position
- Scale
- Visibility
A list of Three.js objects that derive from the Object3D base class are,
- Scene
- Mesh
- Camera
- CubeCamera
- Group
- Sprite
- LOD
- Bone
- Line
- Points
- Light
- AudioListener
- Audio
- SpotLightHelper
- HemisphereLightHelper
- DirectionalLightHelper
- ArrowHelper
Some of the above classes are also derived from parent classes that derive from the Object3D.
Final Script
./src/client/client.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|