I was wondering if there was a proper way to use “tpf” outside of simpleUpdate()? For testing purposes I’ve been transferring tpf to a global tpfTemp to use it in simpleInitApp(), but I have a feeling it’s inefficient and takes double the time to transfer so many values over and over. Isn’t there a way I could globally access it? Thank you
UPDATE: On second thought since simpleInitApp() only runs once it’s useless to globally access tpf. I’d still be interested in how for future reference, though. Thanks!
It was a silly moment I had. I was trying to utilize “tpf” to generate proper values so that I could scale my cube and simulate “pulsating”. I’ve figured it out now but I was just curious as to what the wave looked like, so I went back to my first program where I drew sin waves. I wanted to replace y with the sin of tpf but it was unnecessary