Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
位置を持つオブジェクトがあり、それに回転を適用します。回転後にこのオブジェクトの位置を取得して、カメラをこの位置に移動し、この位置に lookAt ベクトルを設定したいと思います。
どうやってするか?
どうも!
var cameraPosition = new THREE.Vector3(); cameraPosition.getPositionFromMatrix(object.worldMatrix);
cameraPositionは、回転が適用されたオブジェクトの位置を保持するようになりました。