This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-21 07:14:13

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Trigonometry

What games in scratch use trigonometry well. I will be making a game with a car that uses trigonometry so that the wheels will be in the right place.

Offline

 

#2 2010-11-21 07:17:06

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Offline

 

#3 2010-11-21 09:23:21

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Trigonometry

I've got a few...rhy might be someone to look at...Oh!  There's a great example of trig on coolstuff's test account!


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2010-12-09 12:40:10

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Re: Trigonometry

Thanks the project by platform710 is pretty cool. Im not sure I understand it though.
He stuck in a "set x to sin of direction *7" I dont understand how this works can anyone explain what this line does. Also when would you use sine cosine or tan?

Last edited by rep353 (2010-12-09 12:40:21)

Offline

 

#5 2010-12-09 16:31:58

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Trigonometry

rep353 wrote:

Thanks the project by platform710 is pretty cool. Im not sure I understand it though.
He stuck in a "set x to sin of direction *7" I dont understand how this works can anyone explain what this line does. Also when would you use sine cosine or tan?

Sin is most commonly used in scratch for determining the rate you would move horizontally according to your direction, though it has many uses.

Correct me if I'm wrong, but sine I believe is opposite/hypotenuse sides on a right triangle, opposite being the side opposite the angle.

Last edited by Kileymeister (2010-12-09 18:54:16)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#6 2010-12-09 17:16:32

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Trigonometry

If you're working on just the xy plane, you should only use sin for x and cos for y, use tan rarely, though atan is very useful for determining directions.  Paddle2see has a great example of wheel position based on trig I think, I'll go look for it.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#7 2010-12-09 17:34:38

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Trigonometry

Kileymeister wrote:

rep353 wrote:

Thanks the project by platform710 is pretty cool. Im not sure I understand it though.
He stuck in a "set x to sin of direction *7" I dont understand how this works can anyone explain what this line does. Also when would you use sine cosine or tan?

Sin is most commonly used in scratch for determining the rate you would move horizontally according to your direction, though it has many uses.

Correct me if I'm wrong, but sine I believe is opposite/adjacent angles on a right triangle, opposite being the angle opposite the right angle and the angle adjacent to it.

Sine is for the opposite side, and cosine is for the adjacent side. Here's a diagram and a couple equations to explain:

Trigonometric Ratios
http://i51.tinypic.com/2qlydtk.png
C * Sin(θ) = B
C * Cos(θ) = A


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2010-12-09 18:48:02

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Re: Trigonometry

Sin is most commonly used in scratch for determining the rate you would move horizontally according to your direction, though it has many uses.

Correct me if I'm wrong, but sine I believe is opposite/adjacent angles on a right triangle, opposite being the angle opposite the right angle and the angle adjacent to it.

What one would you use to calculate the vertical direction?

I know about trigonometry from maths sine is actually opposite over the hypotenuse.
I just dont know how to transfer my trig knowledge to scratch :S

Last edited by rep353 (2010-12-09 18:48:18)

Offline

 

#9 2010-12-09 19:09:23

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Trigonometry

rep353 wrote:

Sin is most commonly used in scratch for determining the rate you would move horizontally according to your direction, though it has many uses.

Correct me if I'm wrong, but sine I believe is opposite/adjacent angles on a right triangle, opposite being the angle opposite the right angle and the angle adjacent to it.

What one would you use to calculate the vertical direction?

I know about trigonometry from maths sine is actually opposite over the hypotenuse.
I just dont know how to transfer my trig knowledge to scratch :S

Use cosine cosine for y sine for x.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

Board footer