That was great, just what I needed for my current project,
@allochi8 жыл бұрын
Well done Ivan! I like your tutorials, Keep up the good work!
@PapaiGameMaker7 жыл бұрын
Using this maths to create a rotating menu!
@IvanSkodje7 жыл бұрын
I would highly recommend checking out Circular Container github.com/KOBUGE-Games/CircularContainer :D
@VictorGabriel-gc2df3 жыл бұрын
You saved my life
@galacticquasar99444 жыл бұрын
Would yiu be able to make a video on how to make the game read the date? I need this as the climate of my 2d game will change with the seasons. Thank you.
@IvanSkodje4 жыл бұрын
The time & date from the computer? var date_time = OS.get_datetime() docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-get-datetime Returns a dictionary which you can access, for example year: var year = date_time["year"] I do not remember if it returns a string or not, I am sure you can figure it out :)
@UnrealProjects3 жыл бұрын
Will this work for 3d model clock? I want to create a grandfather clock with chime sound, is it possible to add chime sound?
@IvanSkodje3 жыл бұрын
Everything is possible with Godot Engine! You could create a signal on the script that gets emitted when the clock hits 12 (every 1 hour), and then have a "sound player" (or whatever you are using) to connect on the script so it gets informed when to ring a chime sound. The logic will work if you use rotation on a 3D node, yes; however it is up to you to figure out the center (XyZ) and rotate in only two of the 3 directions. (You probably know more than me in 3D space) :)
@UnrealProjects3 жыл бұрын
@@IvanSkodje ...thanks, will study more..
@jorge286248 жыл бұрын
I want to trust you, and I trust you, but... how did you come with the math for the time to radians?
@IvanSkodje8 жыл бұрын
Glad you asked! I have already recorded a video about that. Will post it tomorrow. :) Short version: 60 sec -> 360 degrees around the clock 360 degrees in radian is 2PI. 60 sec = 2PI 1 sec = 2PI/60 -> PI/30 Multiple PI/30 per current second to get the angle in radian. With Hours it is 12 instead of 60.