ScratchData LogoScratchData
Back to ggenije's profile

Quaternion look at

GGggenije•Created January 6, 2021
Quaternion look at
90
78
2375 views
View on Scratch

Instructions

WASDQE (move camera) + Arrow keys (rotate camera) [Space] to stop rotating The point is that object is always pointing at camera, and it still can rotate around that vector.

Description

I used quaternions , first "look at" quaternion , and then "axis angle" quaternion , and then I multiplied those two quaternions , and then I converted the quaternion into euler angles I spent the whole day creating this. Engine still uses euler angles for rotations.

Project Details

Project ID470670022
CreatedJanuary 6, 2021
Last ModifiedSeptember 12, 2021
SharedJanuary 18, 2021
Visibilityvisible
CommentsAllowed