Discuss Scratch

1234abcdcba4321
Scratcher
1000+ posts

How can I make a system that changes X speed and Y speed according to direction?

I know it's possible with sin tan cos, but I don't know how.

I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.
magpie5212
Scratcher
100+ posts

How can I make a system that changes X speed and Y speed according to direction?

Can you describe the relationship you are looking for? How would the speed vary?

forever
Simplify
end
scubajerry
Scratcher
1000+ posts

How can I make a system that changes X speed and Y speed according to direction?

Change in X = Speed * Sin (direction)
Change in Y = Speed * Cos (direction)

You can accomplish this by point in some direction and using the MOVE block.

Last edited by scubajerry (Dec. 18, 2013 17:32:55)

Powered by DjangoBB

Standard | Mobile