Author Topic: Physics Question  (Read 1952 times)

Let's say someone is moving diagonally, but you only know the X Velocity and Y Velocity. How do you find the diagonal velocity?

halving both velocities and seeing what happens?


Use Pythagoras' theorem (a squared + b squared = c squared) to find the length of the diagonal where the X velocity is a, Y velocity is b and the diagonal velocity is c.

halving both velocities and seeing what happens?

So if X Vel is 8, and Y Vel is 2, the diagonal force is 5?

Use Pythagoras' theorem (a squared + b squared = c squared) to find the length of the diagonal where the X velocity is a, Y velocity is b and the diagonal velocity is c.

Not that. The diagonal force is pulled from the 90 degree angle from where the two legs are.
« Last Edit: March 30, 2010, 09:36:49 AM by Deathwishez »

So if X Vel is 8, and Y Vel is 2, the diagonal force is 5?

Not that. The diagonal force is pulled from the 90 degree angle from where the two legs are.
i guess
im in the 7th grade

Everybody hhhaaatttes Chris

i guess
im in the 7th grade

But how can that be possible?

If X is 2 and Y is 2, the middle force is 2sqrt(2)

Odd. Lemmi test the P Theorem

vectorLen(%x SPC %y)
Including their %z, or the whole position vector will provide their total speed.

Not that. The diagonal force is pulled from the 90 degree angle from where the two legs are.

I think this picture I just made explains it better.

So if X Vel is 8, Y Vel is 2 and you put that in pythagoras' theorem you get 8²+2²=64+4=68
68=c² so c equals the square root of 68. That means the diagonal force is the square root of 68.

Hi, I googled it and came up with this. I don't understand it but maybe its some help to you?

angleInRadians = Math.atan2 (y, x);
angleInDegrees = angleInRadians * 180 / Math.PI;

This is the basic process of turning x and y coordinates into an angle.

I think this picture I just made explains it better.

So if X Vel is 8, Y Vel is 2 and you put that in pythagoras' theorem you get 8²+2²=64+4=68
68=c² so c equals the square root of 68. That means the diagonal force is the square root of 68.

This assumes that the velocity is the entire diagonal length. This is velocity. Not distance.

vectorLen(%x SPC %y)
Including their %z, or the whole position vector will provide their total speed.

Hi, I googled it and came up with this. I don't understand it but maybe its some help to you?

angleInRadians = Math.atan2 (y, x);
angleInDegrees = angleInRadians * 180 / Math.PI;

This is the basic process of turning x and y coordinates into an angle.

I don't understand it either. D:

vectorLen(%x SPC %y)
Including their %z, or the whole position vector will provide their total speed.

This isn't for scripting.

If you could break down the math, then I'd be golden.

This isn't for scripting.
Oh, lol.
Yes, pyth theorem:
echo(vectorLen("10 5 0"));
echo(mSqrt((10*10)+(5*5)));