thank you! This looks very easy and clear for understanding what is sine and cosine! In these days I have figured this out much better. And the code no longer seems like some kind of magic.
Search found 4 matches
- Wed Feb 05, 2025 4:14 pm
- Forum: General
- Topic: How is sin and cos work here?
- Replies: 6
- Views: 2427
Re: How is sin and cos work here?
- Tue Feb 04, 2025 10:46 am
- Forum: General
- Topic: How is sin and cos work here?
- Replies: 6
- Views: 2427
Re: How is sin and cos work here?
Hello, you can use these functions to do most of the calculations you need for angles, distances and such: -- angle between two points / vectors function math.angle(x1, y1, x2, y2) return math.round(math.deg(math.atan2(y2 - y1, x2 - x1))) end -- find point from x,y in distance length under angle fun...
- Tue Feb 04, 2025 10:43 am
- Forum: General
- Topic: How is sin and cos work here?
- Replies: 6
- Views: 2427
Re: How is sin and cos work here?
This page is one of the best explanations of how geometry works youll find on the entire internet. If that doesnt help, nothing else can. But here is the thing that the tutorial doesnt tell you: you dont need all that math, this is game dev, not engineering. If you just slowly adjust the x/y values...
- Mon Feb 03, 2025 10:03 pm
- Forum: General
- Topic: How is sin and cos work here?
- Replies: 6
- Views: 2427
How is sin and cos work here?
Hello, everyone, I'm new to love2d and for game development, but recently I started to following this tutorial and even understood many of things. But today I began read 16 chapter and faced with cosine and sine. I don't know about trigonometry(already began to learn), and part, when we using them t...