Jump to content

Move sprite in parallel with rotated sprite (p2)


keke
 Share

Recommended Posts

Using P2 Physics, what's the best way to move a sprite, similar to sprite.body.moveRight, sprite.body.moveLeft but in parallel with another sprite that has a rotation (which constantly changes). 

I want to be able to move the purple line up and down along the yellow line, in parallel and at a fixed distance while they both rotate.

Anya ideas?

 

Thanks

 

Screen Shot 2016-11-02 at 18.24.32.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...