Discuss Scratch
- Vaibhs11
-
Scratcher
1000+ posts
trigonometry on scratch
But they off brand it to “math”, either because that's the “cooler” name or they are all 9-year-olds who don't know trigintro creator timeyeah - almost every intro creator on scratch is obsessed with trig
- The_Imaginarium
-
Scratcher
1000+ posts
trigonometry on scratch
Or rather sinusoidal motion.intro creator timeyeah - almost every intro creator on scratch is obsessed with trig
- SavetheAtlantic
-
Scratcher
1000+ posts
trigonometry on scratch
You can easily make a 3D sphere function on Scratch using the trigonometry functions. Given a longitude λ and latitude φ, and longitude offsets of λ₀ and φ₁ (these will be used to rotate the sphere), you can use these transformation function to create an orthographic map projection, i.e. in layman's terms, a sphere as viewed without any perspective.

R is the radius of the sphere, so changing that will make the sphere bigger or smaller. Here's a simple demonstration I made: https://scratch.mit.edu/projects/754981645/ It's only a wireframe, but you can drag it around, and you can easily draw points, lines, and shapes on the sphere. If you could get your hands on some coastline or city data, you could make a nice globe on Scratch. All of the code was cut from a project I'm making, which I think is quite interesting, but I don't want to spoil anything.
R is the radius of the sphere, so changing that will make the sphere bigger or smaller. Here's a simple demonstration I made: https://scratch.mit.edu/projects/754981645/ It's only a wireframe, but you can drag it around, and you can easily draw points, lines, and shapes on the sphere. If you could get your hands on some coastline or city data, you could make a nice globe on Scratch. All of the code was cut from a project I'm making, which I think is quite interesting, but I don't want to spoil anything.
- gatgatcode
-
Scratcher
100+ posts
trigonometry on scratch
i made a bouncing ball with the sin wave ball
- The_Imaginarium
-
Scratcher
1000+ posts
trigonometry on scratch
i made a bouncing ball with the sin wave ballnice
- Epsilon_3
-
Scratcher
500+ posts
trigonometry on scratch
Trig is useful for 3d and projects like in my sig
- Vaibhs11
-
Scratcher
1000+ posts
trigonometry on scratch
Trig is useful for 3d and projects like in my sigWhy does everyone forget vectors and polar coordinates?
You can literally convert a line and and a given angle into cartesian coordinates using law of sines!!1!!1! (real)
- Vaibhs11
-
Scratcher
1000+ posts
trigonometry on scratch
You're not actually using the law of sines, it's just the definition of sineThough the components of a vector do form a right triangle, you can still call it the law of sines. The definition of sine only applies to right triangles, whereas the law of sines applies to any SAA triangle.
- ISTILLMAKESTUFF
-
Scratcher
500+ posts
trigonometry on scratch
Ik i used that in on of my projectsTrig is useful for 3d and projects like in my sigWhy does everyone forget vectors and polar coordinates?
You can literally convert a line and and a given angle into cartesian coordinates using law of sines!!1!!1! (real)
- Vaibhs11
-
Scratcher
1000+ posts
trigonometry on scratch
Ik i used that in on of my projectsI used it while making a project where you drive a car sprite across the screen, in JS
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
trigonometry on scratch
I think a better explanation of sines, cosines and tangents might be
“Where there is a triangle of length 1 and the angle given, sine is the vertical position of the unknown point, cosine is the horizontal position of the unknown point, and tangent is the slope of the hypotenuse, which goes to the unknown point.”
“Where there is a triangle of length 1 and the angle given, sine is the vertical position of the unknown point, cosine is the horizontal position of the unknown point, and tangent is the slope of the hypotenuse, which goes to the unknown point.”
- ThisIsTemp1
-
Scratcher
1000+ posts
trigonometry on scratch
Useful for making random clock positions that aren’t the most accurate.
Also has anyone mentioned
Yet?
Also has anyone mentioned
move () steps
Yet?
- BigNate469
-
Scratcher
1000+ posts
trigonometry on scratch
Useful for making random clock positions that aren’t the most accurate.Why?
Also has anyone mentionedmove () steps
Yet?
It can be manually re-created, but it's a relatively unremarkable block otherwise. Yes, it uses trig, but it's existence is not itself remarkable.








