Initial project import
This commit is contained in:
12
scratch/test_three.cjs
Normal file
12
scratch/test_three.cjs
Normal file
@@ -0,0 +1,12 @@
|
||||
const THREE = require('three');
|
||||
const parent = new THREE.Group();
|
||||
parent.position.set(1, 0, 0);
|
||||
const child = new THREE.Mesh();
|
||||
child.position.set(0, 1, 0);
|
||||
parent.add(child);
|
||||
parent.updateMatrixWorld(true);
|
||||
|
||||
const clone = child.clone(true);
|
||||
clone.applyMatrix4(child.matrixWorld);
|
||||
|
||||
console.log("Clone pos:", clone.position);
|
||||
Reference in New Issue
Block a user