Skip to content

Commit

Permalink
Fixed rotation defect in VRMLLoader.js (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorth authored Apr 27, 2024
1 parent 017639d commit c61652b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/VRMLLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ class VRMLLoader extends Loader {
break

case 'rotation':
const axis = new Vector3(fieldValues[0], fieldValues[1], fieldValues[2])
const axis = new Vector3(fieldValues[0], fieldValues[1], fieldValues[2]).normalize()
const angle = fieldValues[3]
object.quaternion.setFromAxisAngle(axis, angle)
break
Expand Down

0 comments on commit c61652b

Please sign in to comment.