I’m somewhat new to Unity and this is probably considered very elementary for most here but I can’t get my wave to change dynamically w/o screwing things up. The wave works fine until I change a variable while it’s running. I’m hoping to have an input gui that changes the wave angle of attack in realtime but it doesn’t work. Can anyone help me w/ this?
364818–12679–$test1_116.unitypackage (1.65 MB)
To clarify, I haven’t tried to input a gui yet. That’s the end goal. However when I run the scene I can’t change the parameters w/o messing things up. The end objective is to have a boat that rocks according to some preexisting data according to speed, wave heading, wave height, etc.
Also I’m not a programmer by trade so any input as to comments, useful data, etc. that helps people look at my stuff. If someone’s helping me I certainly don’t want to make it hard to do so.
When you say things get messed up, what exactly goes wrong?
Something w/ the math where either the wave goes away or creates a tiny wave behind it. I assume it has to do w/ the offset and the fact I have a formula calculating the wave. It tends to work for a few angles and then gets progressively worse each time I make a change. W/o a proper troubleshooter I’m having the darndest time trying to figure out what all’s happening. I ultimately want the inputs controlled by a gui so it’d be nice to have a reset button in a gui but I’m not sure how to do that w/ Time.time being continuous. If you pull up the file and let it run, then change the angle parameter a few times you should be able to see exactly what I’m talking about.