javascript - THREE.js : 2xMeshes using same vector as position -


just did update r67 - r69 in threejs , ends having problems referring positions 1 (same) vector.

before did worked:

var vector = new three.vector3(50, 50, 50); _mesh1.position = vector; _mesh2.position = vector; 

which made possible when moved 1 of meshes moved other 1 well.

in r69 position vector remains same (aka 0, 0, 0) means have manually set x, y , z coords each mesh whenever mode one.

am missing change here? or should fix this?

object3d's position, rotation, quaternion , scale properties immutable.

see source code file object3d.js.

you can no longer use following pattern:

object.position = vector; 

instead, must use either

object.position.set( x, y, z ); 

or

object.position.copy( vector ); 

three.js r.69


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -