Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with some trig

Featured Replies

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.

First theta = arctan(t/(r-e)), and then the arclength s =r*theta, where theta is measured in radians.

  • Author

Thanks a bunch, it seems to work great:

 

20110408070930.png

 

Now to get working on the (pseudo) physics.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.