Skip to content

Move along an Arc #13

@phase

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?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions