Premium Only Content

How to Rotate 2D Objects by Player Input ~ Godot 4 Tutorial
Here's my detailed explanation of rotating 2d objects in Godot by degrees or radians. Briefly touches how to use input actions to trigger the rotations on a Node2D (the root of the object you need rotated)
Watch out for tiny inaccuracies in floating point degree / radian conversions by checking with is_equal_approx!
Trying to Look At (Rotate Towards) at Player / Enemies? https://youtu.be/tX9yzjigV1k?si=DHceoZ0szx3d1rbt
Grid Building Plugin ➣ https://linktr.ee/gridbuilder
World Time Plugin ➣ https://linktr.ee/worldtimeplugin
Item Drops Plugin ➣ https://linktr.ee/itemdrops
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://patreon.com/christutorials
https://chris-tutorials.itch.io/
➣ Support Channel with Crypto Donations
https://pastebin.com/WAnBPcXs
00:00 - Demonstration
00:51 - Rotation Degrees Output
01:28 - Rotation & Input Code
03:25 - Simplest Degrees Rotation Solution (tl;dw)
05:21 - Floating Point Conversions in Rotations
07:32 - GUT Godot Unit Test
07:40 - Rotating with Radians
10:12 - Look At (Video in Description)
11:00 - Why global_rotation_degrees?
11:31 - Wrapup
-
LIVE
Dabkillah
5 hours ago🔴LIVE-DABKILLAH-FORTNITE-KICKASS AND TAKING NAMES
70 watching -
LIVE
Joker Effect
33 minutes agoRAGE?! How about Gaming on RUMBLE?! Tonight...The Real Joker rages at The First Berserker
363 watching -
LIVE
Vorrhese
41 minutes agoLIVE: The First Berserker: Khazan - Lets Play!
158 watching -
LIVE
rosssims
1 hour agoSims Games: Simsy plays Stardew Valley ‽ ‽ ‽
50 watching -
LIVE
SynthTrax & DJ Cheezus Livestreams
22 hours agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream BLACKLIGHT Edition
172 watching -
10:09
China Uncensored
6 hours agoTrump Just Hit China Where It Hurts
9205 -
2:42:25
DrDamon
3 hours ago🟢 LIVE - Old Man Gets Carried in Video Games | USE CODE: "DRDAMON"
22 -
LIVE
Koke
5 hours agoCore Keeper Bags & Blasts Hardcore - Bird Boss!
69 watching -
DVR
Film Threat
7 hours agoLIVE FROM WONDERCON IN ANAHEIM | Film Threat Live
317 -
LIVE
Farukzzz
3 hours ago[PT-ENG] Pt. 2: The First Berserker: Khazan – Isto é facileee...
78 watching