# Angles & Trigonometry (Sin / Cos) in Scratch

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

Angles & Trigonometry (Sin / Cos) in Scratch — 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](/en/techniques/): Browse more English guides in this section.
- [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples.

Updated: 2026-11-23
Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/)
Japanese Edition: https://scratch.gmnavi.jp/techniques/angles-trig/

[Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)
