Peronix Posted April 8, 2011 Share Posted April 8, 2011 I figured this would go here because I need to figure this out for a mod I'm writing for MineCraft. 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 More sharing options...
massicist Posted April 8, 2011 Share Posted April 8, 2011 First theta = arctan(t/(r-e)), and then the arclength s =r*theta, where theta is measured in radians. Link to comment Share on other sites More sharing options...
Peronix Posted April 8, 2011 Author Share Posted April 8, 2011 Thanks a bunch, it seems to work great: Now to get working on the (pseudo) physics. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now