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

[BUG] issue with follow_path not working if object start_pos is not origin #491

Open
ArbitRandomUser opened this issue Sep 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ArbitRandomUser
Copy link
Contributor

ArbitRandomUser commented Sep 11, 2022

import Javis

video = Video(500,500)
Background(1:100,(args...)->background("white"))

obj = Object(1:100,(args...)->begin
                 box(O,20,20;action=:stroke)
                 return O
             end,O+20)

function path(action)
    p1 = O+20
    p2 = O+200
    newpath()
    arc2r((p1+p2)/2,p1,p2,action=action)
    path1=pathtopoly()
    closepath()
    return path1
end

pathobjs = Object(1:100,(args...)->path(:stroke))
act!(obj,Action(1:100,follow_path(path(:path)[1],closed=false)))
render(video,pathname="test.gif")
run(`mpv test.gif`)

  1. Julia Version (i.e. output of julia -v):julia version 1.8.0

  2. Operating system (Mac, Linux, Windows):linux

  3. Javis version (i.e output of ] status Javis in the REPL):0.9

  4. Minimum working code example that led to bug: pasted above

Expected Behavior and Actual Behavior square should move along the arc in the picture , however it does not

Screenshots
If applicable, add your gif or drawing to help explain your problem.

test

Additional context
Add any other context about the problem here.

@ArbitRandomUser ArbitRandomUser added the bug Something isn't working label Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant