NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Angles & Trigonometry (Sin / Cos) in Scratch

📌 What you will learn

Use sin and cos to move smoothly in circular orbits, waves, and custom directional velocity.

Core approach

In Scratch’s compass system (0° = Up), x velocity = speed × sin(angle) and y velocity = speed × cos(angle).

  • Create circular orbits: x = center_x + radius * sin(angle), y = center_y + radius * cos(angle).
  • Create floating coins: y = base_y + 10 * sin(timer * 200).
  • Compute distance with sqrt((dx * dx) + (dy * dy)).

Pro tip & next steps

Scratch’s trig blocks use degrees directly—no radian conversion needed.

All Techniques Browse more English guides in this section. Learn more → Scratch Block Dictionary Look up any Scratch 3.0 block with examples. Learn more →

FAQ

What is the best first step for "Angles & Trigonometry (Sin / Cos) in Scratch"?

Create circular orbits: x = center_x + radius * sin(angle), y = center_y + radius * cos(angle). Scratch’s trig blocks use degrees directly—no radian conversion needed.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.