Offline
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!
Offline
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
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)
Offline
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.
Offline
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
C * Sin(θ) = B
C * Cos(θ) = A
Offline
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
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.
Offline