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

#26 2010-06-21 12:49:50

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

Greatdane wrote:

shadow_7283 wrote:

Greatdane wrote:

I'm sure this will work the best:

http://i.imgur.com/GuPRt.gif

Try it.

It doesn't! What about poor y?

The thing is, how large is your circle?

It varies. But it shouldn't matter, should it?

Offline

 

#27 2010-06-21 12:58:03

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Trigonometry Help

I'm done. If you want y, then use my previous equation, except multiply by the radius or something like that.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#28 2010-06-21 12:59:57

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

Sorry, but it still doesn't work...

Offline

 

#29 2010-06-21 13:10:13

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Re: Trigonometry Help

why isn't my equation perfect?


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

#30 2010-06-21 13:29:25

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Trigonometry Help

Use the atan function with some if blocks like:
http://upload.wikimedia.org/math/1/4/a/14a04ec5ece69dcae0cbc0336186e026.png


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#31 2010-06-21 13:31:49

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

Could you give me a Scratch block example?

Offline

 

#32 2010-06-21 13:40:02

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

Could you give me a Scratch block example?

I'm working on it right now...

EDIT:
Here!  big_smile
http://img413.imageshack.us/img413/6086/pointtomouse.gif

Last edited by MathWizz (2010-06-21 13:47:43)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#33 2010-06-21 14:45:11

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

Sorry guys. Mathwizz is smarter than all of you.  wink

Offline

 

#34 2010-06-21 14:54:45

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Trigonometry Help

MathWizz wrote:

shadow_7283 wrote:

Could you give me a Scratch block example?

I'm working on it right now...

EDIT:
Here!  big_smile
http://img413.imageshack.us/img413/6086 … omouse.gif

*applauds*  big_smile

Offline

 

#35 2010-06-21 14:55:14

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

Sorry guys. Mathwizz is smarter than all of you.  wink

Not necessarily.

I was just tired of making my mind explode.  tongue

I would've thought that tangent(in Subh's method) would work, and Mathwizz used atan to simplify things! How smart.

EDIT: Silly counting method used in Scratch. Mathwizz could've used a simpler method had it not been so off.  sad

Last edited by Greatdane (2010-06-21 14:56:15)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#36 2010-06-21 14:58:28

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

PROTEST NEGATIVE DEGREES!  tongue  But seriously...

Offline

 

#37 2010-06-21 15:11:54

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Trigonometry Help

Has anyone realized that you can just use point towards block, record the angle and them go back to the original direction?
If it has to use trig, copy the point towards script >.>


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#38 2010-06-21 15:29:21

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Trigonometry Help

juststickman wrote:

Has anyone realized that you can just use point towards block, record the angle and them go back to the original direction?
If it has to use trig, copy the point towards script >.>

But we want to use advanced formulas and trigonometry!  sad


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#39 2010-06-21 15:34:19

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

Lol.  tongue

Offline

 

#40 2010-06-21 15:42:30

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Trigonometry Help

lOl! Double  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#41 2010-06-21 16:08:18

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

For this project I had to repeat the same two blocks THREE HUNDRED SIXTY TIMES because Scratch's repeat blocks are so slow.  sad

Offline

 

#42 2010-06-21 16:31:30

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Trigonometry Help

juststickman wrote:

Has anyone realized that you can just use point towards block, record the angle and them go back to the original direction?
If it has to use trig, copy the point towards script >.>

Spoil sport.  sad


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#43 2010-06-21 17:34:21

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

But that would require another sprite! And let's face it, who wants THAT? Plus, I needed the degrees listed from 1-360 AND in the Scratch format.

Offline

 

#44 2010-06-21 17:43:05

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

For this project I had to repeat the same two blocks THREE HUNDRED SIXTY TIMES because Scratch's repeat blocks are so slow.  sad

yikes  What's the project?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#45 2010-06-21 18:10:41

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

MathWizz wrote:

shadow_7283 wrote:

For this project I had to repeat the same two blocks THREE HUNDRED SIXTY TIMES because Scratch's repeat blocks are so slow.  sad

yikes  What's the project?

Do you have an iPod touch / iPhone? I'm trying to recreate an app there on Scratch. You have a planet (which is what the circle is) which you manipulate with followers to create your empire. Anyway, it might be a Prism Production, but I'm just working on the basics for now.

By the way, the reason I need 360 repeats is to draw the circle. It can't use a sprite since you can control the size and shape of your planet.

Last edited by shadow_7283 (2010-06-21 18:11:26)

Offline

 

#46 2010-06-21 19:01:10

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

MathWizz wrote:

shadow_7283 wrote:

For this project I had to repeat the same two blocks THREE HUNDRED SIXTY TIMES because Scratch's repeat blocks are so slow.  sad

yikes  What's the project?

Do you have an iPod touch / iPhone? I'm trying to recreate an app there on Scratch. You have a planet (which is what the circle is) which you manipulate with followers to create your empire. Anyway, it might be a Prism Production, but I'm just working on the basics for now.

By the way, the reason I need 360 repeats is to draw the circle. It can't use a sprite since you can control the size and shape of your planet.

Cheat and use consecutive pen circles.

P.S. Did MathWizz solve your trig problem? 'Cause I think I can make his script shorter.

Last edited by nXIII (2010-06-21 19:02:05)


nXIII

Offline

 

#47 2010-06-21 19:11:19

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

nXIII wrote:

shadow_7283 wrote:

MathWizz wrote:


yikes  What's the project?

Do you have an iPod touch / iPhone? I'm trying to recreate an app there on Scratch. You have a planet (which is what the circle is) which you manipulate with followers to create your empire. Anyway, it might be a Prism Production, but I'm just working on the basics for now.

By the way, the reason I need 360 repeats is to draw the circle. It can't use a sprite since you can control the size and shape of your planet.

Cheat and use consecutive pen circles.

P.S. Did MathWizz solve your trig problem? 'Cause I think I can make his script shorter.

It solved it, but I'm open to new suggestions.
And what do you mean "consecutive pen circles"?

Offline

 

#48 2010-06-21 19:41:57

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

nXIII wrote:

shadow_7283 wrote:


Do you have an iPod touch / iPhone? I'm trying to recreate an app there on Scratch. You have a planet (which is what the circle is) which you manipulate with followers to create your empire. Anyway, it might be a Prism Production, but I'm just working on the basics for now.

By the way, the reason I need 360 repeats is to draw the circle. It can't use a sprite since you can control the size and shape of your planet.

Cheat and use consecutive pen circles.

P.S. Did MathWizz solve your trig problem? 'Cause I think I can make his script shorter.

It solved it, but I'm open to new suggestions.
And what do you mean "consecutive pen circles"?

Here


nXIII

Offline

 

#49 2010-06-21 19:47:51

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Trigonometry Help

nXIII is smarter than everybody.  tongue

Offline

 

#50 2010-06-21 20:06:13

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Trigonometry Help

shadow_7283 wrote:

nXIII is smarter than everybody.  tongue

tongue
Nah, I've just been using trig for a couple of years and in a lot of different things. Practice makes perfect!


nXIII

Offline

 

Board footer