Skip to content
Snippets Groups Projects
Commit ee947852 authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: fix pinch rotation

parent c7469d29
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,7 @@ export class NehubaViewerTouchDirective implements OnDestroy{
)
const ori = this.ngViewer.navigationState.pose.orientation.orientation
vec3.transformQuat(axis, axis, ori)
vec3.normalize(axis, axis)
this.ngViewer.navigationState.pose.rotateRelative(axis, theta)
}),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment