ScratchData LogoScratchData
Back to sethr28's profile

3D Rotation Matrices but it's a missing texture

SEsethr28•Created November 29, 2019
3D Rotation Matrices but it's a missing texture
0
0
7 views
View on Scratch

Instructions

So as it turns out, I have been doing 3D rotation completely wrong all these years. For a rotation θ of x,y, I did (sin(arctan(x/y)+θ)sqrt(x^2+y^2), cos(arctan(x/y)+θ)sqrt(x^2+y^2)), when I could've been doing (xcosθ-ysinθ, xsinθ+ycosθ). This second method is a lot more concise, and A LOT faster. I can speed up 3D projection projects now by A LOT.

Project Details

Project ID349283798
CreatedNovember 29, 2019
Last ModifiedNovember 29, 2019
SharedNovember 29, 2019
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root