Hello guys,
sounds simple, but i’m kinda stuck right now.
So i want to pickup an object with the mouse, and throw it away when i release the mouse button.
Easy so far, but i want to calculate the force, based on how fast i’m moving the mouse.
So what i’ve tried is
Direction Vector * (Base factor * Mouse Axis Scale) - doesn’t work because the axis scale is 0, most of the time.
Any ideas?
Thank you!
edit: Oh i’m stupid, it could work with a physic handle. Nevermind!
Another option is to store the position of the mouse last tick, and compare to the position of the mouse this tick (when releasing.)
That way, the bigger the delta, the larger the force you should apply.