Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move along an Arc #13

Open
phase opened this issue Oct 8, 2015 · 1 comment
Open

Move along an Arc #13

phase opened this issue Oct 8, 2015 · 1 comment

Comments

@phase
Copy link
Owner

phase commented Oct 8, 2015

Here's some pseudocode I made for going to a point in an arc.

for t in [30, 45, 60, 90]: #More angles?
    rz = sin(to.z > from.z ? -t : t) * (to.z - from.z)
    rx = cos(to.x > from.x ? -t : t) * (to.x - from.x)
    ry = tan(to.y < from.y ? -t : t) * (to.y - from.y)
    move(rx, ry, rz)

Thoughts @VoltzLive?

@j-walk
Copy link

j-walk commented Oct 8, 2015

test it! ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants