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

#1 2012-09-02 13:46:38

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Use the right sin and cos functions.

If you try to draw a sine wave in scratch it'll give you a cosine wave, and a cosine wave will give you a sine wave. I think scratch should use the proper trig terms. I have no idea why it's reversed anyway, can someone spread some light on why?


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#2 2012-09-02 13:48:30

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Use the right sin and cos functions.

i dont know why

its heinously stupid


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-09-02 13:51:47

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Use the right sin and cos functions.

Wes64 wrote:

i dont know why

its heinously stupid

The only reason I can think of is that sin comes first in the drop down menu, and x does too.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#4 2012-09-02 13:54:04

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Use the right sin and cos functions.

zammer990 wrote:

Wes64 wrote:

i dont know why

its heinously stupid

The only reason I can think of is that sin comes first in the drop down menu, and x does too.

i know scratch's directional system is messed up so that might be why

scratch's "north" direction is 0 degrees

but that's usually 90 degrees. 90 degrees is also the offset between a sin wave and a cosine wave, so im assuming thats why


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#5 2012-09-02 14:24:33

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Use the right sin and cos functions.

Wes64 wrote:

zammer990 wrote:

Wes64 wrote:

i dont know why

its heinously stupid

The only reason I can think of is that sin comes first in the drop down menu, and x does too.

i know scratch's directional system is messed up so that might be why

scratch's "north" direction is 0 degrees

but that's usually 90 degrees. 90 degrees is also the offset between a sin wave and a cosine wave, so im assuming thats why

I guess that kinda explains it, but that raises another point, why have such a strange direction system, while it would take a while to adjust scripts for a normal system, it'd simplify them


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#6 2012-09-02 15:03:28

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Use the right sin and cos functions.

If they fix this thousands of projects would malfunction.


http://i50.tinypic.com/312u714.jpg

Offline

 

#7 2012-09-02 16:35:35

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Use the right sin and cos functions.

BirdByte wrote:

If they fix this thousands of projects would malfunction.

True, but things like this have happened before. I saw an old project that used the comment blocks, rather than the side tags, if you played it in java or offline the script would stop running at that point.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

Board footer