Jump to content

Help with some trig


Recommended Posts

I figured this would go here because I need to figure this out for a mod I'm writing for MineCraft.

 

problemim.png

 

How do you determine the length of the arc s given only the radius r, and the lengths t and e?

 

Basically the player has free movement in the X and Y direction and the Z (vertical) offset e is calculated by applying the pythagorean theorem to the xy offset(t) and the radius ( sqrt(r^2 - t^2) = e). I need s to determine the resistance the player encounters when attempting to swing to the given point. Of course I also still need to calculate X and Y momentum, but I can't even start on that until I figure this out.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.