• they/it/any

en/de
24
amateur math student
professional slash shipper and shitchoster
average math/programming/game dev enjoyer
proud parent of @JWST-live
asks always welcome :3
mutuals, feel free to dm on discord
might reblog light nsfw, be warned
NerdTests.com says I'm a Highly Dorky High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!


posts from @greytdepression tagged #rust

also:

i added camera movement smoothing to my game yesterday (because the new physics engine i wrote is a little jittery at times -- i'll fix that later,,,, maybe). in the past i tried doing this using limited acceleration or various other methods, but this time i thought i might try something that painting programs do to smooth brush strokes: tying the brush to the mouse by a virtual string; or in my case tying the camera to where it should go to by a virtual string. zbrush calls this lazy mouse

i'm actually doing a little more than that. i added time as another dimension, which causes the camera to converge to the target over time even if the target doesn't move.
here's the code. feel free to copy if you could need it for something