Unity - Cosine / Sine (archive)

Опубликовано: 17 Февраль 2026
на канале: RDragon
425
25

Programming Study Group -   / discord  

In this video, we'll cover the basics of trigonometry, essential for every game developer. If you're not a math whiz, don't worry—we'll cover sines, cosines, tangents, and cotangents from scratch, using practical examples in Unity!

In this episode:

Geometry at a Glance: A Recap of Right Triangles, Legs, and the Hypotenuse [01:14].

What are Sin and Cos: How these functions help determine object coordinates [01:46].

Circular Movement: We'll explore how to make an enemy or any object rotate around the player in a given orbit [13:53].

Radians and Degrees: How to correctly convert one value to another in Unity code [14:04]. Wave Motion: Creating a Levitation (Smooth Rocking) Effect for an Object Using a Sine Wave [21:41].
Practice: Writing a Script to Arrange Objects in a Circle and Control Their Amplitude and Frequency of Motion [24:25].
Mathematics is a powerful tool for creating game logic, visual effects, and AI behavior. Let's learn how to use it effectively!