minus-squareslinkie@lemmy.worldtoGodot@programming.dev•How would I get a relative point between a min and max value that could be represented as a float between 0.0 and 1.0?linkfedilinkarrow-up4·edit-21 year agoMaybe you’re looking for lerp()? Given two vectors and a value between 1.0 and 0, it’ll produce a vector at a point between the inputs. https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2-method-lerp linkfedilink
minus-squareslinkie@lemmy.worldtoAsklemmy@lemmy.ml•Why can’t I place the caret on my iPhone?linkfedilinkarrow-up3·1 year agoThis is a game changer. linkfedilink
minus-squareslinkie@lemmy.worldtoAsklemmy@lemmy.ml•Why can’t I place the caret on my iPhone?linkfedilinkarrow-up1arrow-down2·1 year agodeleted by creator linkfedilink
Maybe you’re looking for lerp()?
Given two vectors and a value between 1.0 and 0, it’ll produce a vector at a point between the inputs.
https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2-method-lerp