提交 a3f22312 编写于 作者: J Jerome Etienne

added ARjs.HitTesting.Result.prototype.applyQuaternion

上级 f6cd98ff
......@@ -144,4 +144,19 @@ ARjs.HitTesting.Result.prototype.applyPosition = function(object3d){
object3d.position.copy(this.position)
object3d.updateMatrix()
return this
}
/**
* Apply to a controlled object3d
*
* @param {THREE.Object3D} object3d - the result to apply
*/
ARjs.HitTesting.Result.prototype.applyQuaternion = function(object3d){
object3d.quaternion.copy(this.quaternion)
object3d.updateMatrix()
return this
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册