Skip to content

Move along an Arc #13

Open
Open

Description

@phase

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?

Activity

  1. self-assigned this
    on Oct 8, 2015
  2. j-walk commented on Oct 8, 2015

    @j-walk

    test it! ^^

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions