Friendly Cosmonaut's Avatar

Friendly Cosmonaut

@friendlycosmonaut.dev

πŸš€A friendly cosmonaut gamedev πŸ’« Patreon | https://www.patreon.com/c/FriendlyCosmonaut YouTube | https://www.youtube.com/c/FriendlyCosmonaut

106
Followers
32
Following
41
Posts
13.12.2024
Joined
Posts Following

Latest posts by Friendly Cosmonaut @friendlycosmonaut.dev

Essential gamedev math function: atan2
Essential gamedev math function: atan2 YouTube video by FriendlyCosmonaut

How do we look at another object... a very simple and classic gamedev question. The answer is atan2! youtu.be/qFSAcCwQS0E
#godot #gamedev

07.03.2026 08:50 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

godotnaut is very WELCOMING!! a little over eager but look they are rather socially anxious...
#godot #gamedev

04.03.2026 23:36 πŸ‘ 13 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0

Honestly, same, I reckon that's fair πŸ₯²

01.03.2026 12:05 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

That's right haha, the origin is indeed at its feet! The joke is basically that we rarely want the WHOLE model to rotate like this as it looks quite goofy. For a humanoid, we expect/want the body to rotate around the vertical axis only (maybe the head with more motion) -- but yes, constraints NEEDED

01.03.2026 00:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Yeah, it's just not as user-friendly as popping in "look_at(node)" (or Vector2/3 instead of node), which might be expected by beginners. The above suggestion results in this:
Which is fine! It works! It's just quite wordy. As well, it's interesting to look behind the scenes at the math.

28.02.2026 10:10 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Ah absolutely for 2D, but I have been meaning 3D, like this:
bsky.app/profile/frie...

28.02.2026 07:54 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

my son

28.02.2026 07:38 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

so this is why look_at() is a bit UM wonky in #godot #gamedev

28.02.2026 07:37 πŸ‘ 19 πŸ” 3 πŸ’¬ 5 πŸ“Œ 1
Post image

Absolutely, but there are cases eg. in Godot where the built-in user-friendly functions (eg. look_at) are not desired. They result in the below outcome, whereas I might want to just turn the character on one axis.
As well, in general, I do like to explain/understand the underlying maths!

28.02.2026 00:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Definitely have a look at @freya.bsky.social 's work and tutorials, they are wonderful for grasping concepts like this!

28.02.2026 00:41 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

An essential bit of gamedev math - atan2!
We often know a target's position and want to face it. But how do we get the angle?
angle = atan2(y / x)
Or in 3D...
angle = atan2(x / z)
(We can also see below, what happens if we use atan instead of atan2)
#godot #gamedev

27.02.2026 07:20 πŸ‘ 109 πŸ” 13 πŸ’¬ 3 πŸ“Œ 1
Preview
Friendly Cosmonaut | Patreon Games and tutorials

I also have a Patreon if you want to support me making more videos like this! There's early access to videos, code repositories, voting on videos, code help, etc.
www.patreon.com/c/FriendlyCo...

27.02.2026 04:26 πŸ‘ 6 πŸ” 6 πŸ’¬ 0 πŸ“Œ 0
How to Use Materials & Shaders | Godot 3D
How to Use Materials & Shaders | Godot 3D YouTube video by FriendlyCosmonaut

A new #godot tutorial that tries to answer... What are visual materials? Why are there so many slots for them!? Where do we put shaders and how do we use them? youtu.be/-hhwYgjRFc4

27.02.2026 04:24 πŸ‘ 16 πŸ” 6 πŸ’¬ 1 πŸ“Œ 0

Such a good song πŸ°πŸŸ°πŸ‡πŸ›°οΈπŸš«πŸ‘€

26.02.2026 00:01 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Aw yay, I hope they've been helpful! Slow and steady absolutely ☺️

25.02.2026 07:35 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

How to face bunny

25.02.2026 07:32 πŸ‘ 7 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
What are materials in gamedev?
What are materials in gamedev? YouTube video by FriendlyCosmonaut

A very beginner-focused #gamedev tutorial, with a little bit of #godot as usual - What are materials? youtu.be/l14ryz3OdN8

21.02.2026 10:20 πŸ‘ 12 πŸ” 4 πŸ’¬ 1 πŸ“Œ 0

Binary files are more efficient, but quite impossible for humans to read. Also, a nightmare to deal with in source control. (What changes did you make to the file? How can you tell? How do I go back to when it worked? Oh dear!) So, text-based files are usually preferred!

19.02.2026 03:54 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

Similarly, ".scn" and ".tscn" files are scenes - basically, a bunch/tree/hierarchy of Nodes that form a collective Thing (eg. the Player). This Thing is saved as a special type of resource, and can later be instantiated. Again, ".scn" is binary and ".tscn" is text-based.

19.02.2026 03:49 πŸ‘ 6 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

Ever wondered what the ".res" and ".tres" mean in #Godot? They're res-ource files! Packets of data (eg. a material) that don't do anything on their own, but can be used by Nodes (eg. to render an object). A ".res" file is binary, while ".tres" is t-ext based human readable.

19.02.2026 03:48 πŸ‘ 15 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

Seeing in ultraviolet? #godot

17.02.2026 10:23 πŸ‘ 13 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
What assets can I actually use? | Importing Assets to Godot 3D
What assets can I actually use? | Importing Assets to Godot 3D YouTube video by FriendlyCosmonaut

What assets can we use in gamedev? This video covers common licenses (creative commons, MIT, public domain - permissive, restrictive, and open source) and file types of assets (FBX, glTF, OBJ, blend), and their impacts on our creative projects.
youtu.be/gPxZzoAM0Vk
#godot

16.02.2026 00:53 πŸ‘ 23 πŸ” 8 πŸ’¬ 0 πŸ“Œ 0

My apologies friends, this week's video about asset pipelines with Godot is a little late - in part because I am (FURIOUSLY) struggling to find texture packs that are not made with AI to recommend using. Likely up tomorrow instead - I am a very grumpy cosmonaut!

14.02.2026 00:52 πŸ‘ 9 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Player Movement & Collisions | Godot 3D
Player Movement & Collisions | Godot 3D YouTube video by FriendlyCosmonaut

Here's a new tutorial - setup basic 3D movement and collisions in #Godot! We discuss the different kinds of physics bodies, revisit node hierarchy, and Godot's built-in CharacterBody movement script
youtu.be/S6NeTy9z_rE

07.02.2026 00:31 πŸ‘ 17 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0
Intro to Godot - Download & Project Setup
Intro to Godot - Download & Project Setup YouTube video by FriendlyCosmonaut

A very gentle start to my Intro to #Godot tutorial series. Covers installing Godot/different versions (stable/beta/dev), basic project setup, Godot's Node architecture, Object Oriented Programming, and uncover a mystery Aussie animal πŸ¦˜β‰οΈ youtu.be/Kdr7sD0-r68

31.01.2026 00:52 πŸ‘ 41 πŸ” 14 πŸ’¬ 1 πŸ“Œ 0

Godot as an organisation takes seriously/purports to be non-prescriptive (also why it doesn't have a built-in Terrain editor among other common feature requests). Still, I have been thinking about this too... the absence of endorsement can be confusing as a user (and especially for beginners!)

30.01.2026 10:01 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Hmm, to add to what @uniw.university posted - I've also observed Github/Git as the default. Godot itself is hosted on GitHub, and most creators from the Godot Asset Library likewise host using Git/GitHub

30.01.2026 09:57 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

FINALLY back... thanks Faulty 🌟🐝

24.01.2026 02:06 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Talk at Freeplay Angles about Game Narratives and Endings | Friendly Cosmonaut Get more from Friendly Cosmonaut on Patreon

If you'd like to support the series, pop over to my Patreon; I'll be posting extra videos, source code, thoughts, polls and demos there - just like this one!
www.patreon.com/posts/148925...

23.01.2026 12:22 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
3D Adventure Series - Introduction
3D Adventure Series - Introduction YouTube video by FriendlyCosmonaut

I am officially back... with bees. New tutorial video every week!
#Godot

23.01.2026 12:12 πŸ‘ 15 πŸ” 4 πŸ’¬ 3 πŸ“Œ 0