Godot Version
4.2.1
Question
I am a very beginner programmer.
I really hate making animations in blender, especially really basic ones (floating, shaking etc) so as I’ve started getting used to coding in gdscript i’ve gotten excited at the idea of using math to do simple animations instead of using blender. For example I thought I could use a sin wave in the global_position.y of an object to get it to move smoothly up and down instead of needing to make a seperate animation for it in blender.
But then when I tried to use a sin wave in this way the code started randomly breaking. It would work with some values, but would not work with other values. Some values would randomly make a child node null while others wouldnt (I still can’t figure out why this is happening, those specific values on their own won’t crash the program, but for some reason when the sin wave produces that value it does break)
This is making me think that maybe using sin waves and other maths to move things might not be a good idea and maybe I should just use animations like normal.
So my question, Is it bad practice to use maths and waves to make rudimentary animations, or is it normally safe to do?