Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Pixi.js sprites offset when dragging

$
0
0

View the jsfiddle demonstrating the issue (just click and drag the circle - relevant code on line 102).

When I add a circle to the stage with Pixi.Graphics and drawCircle( 150, 100, 50 ), the circle when dragged becomes offset by it's position ( +150, +100 ) in the Graphics container.

(and if we request the circle.position it's also inaccurate)

What's the best way to add a shape to the screen and set it's position if it's not through a Graphics container?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>