Jump to content

Mouse speed meter


EFF
 Share

Recommended Posts

I had nothing to do, so I made sth like this :P

Done in 2 hours. I`m not sure about the way the speed is counted but I think it`s correct :lmao:

Say what you think about it :(

haha, i like it. but it doesn't figure speed right for diagonals. one sec, i'm gonna test a re-write just 'cause i think this is neat....
Link to comment
Share on other sites

haha, i like it. but it doesn't figure speed right for diagonals. one sec, i'm gonna test a re-write just 'cause i think this is neat....

i think your formulas are off... maybe...

if i remember right, the length of a line can be determined with...

sqrt((y2-y1)(y2-y1)+(x2-x1)(x2-x1))

and that's just based off of a squared + b squared = c squared...

so you're figuring the squared lenths of the base and height of the triangle with the (y2-y1)(y2-y1)+(x2-x1)(x2-x1) then just take the squareroot of that number for the length of the hypotenuse (spelling?)

Edited by cameronsdad
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...