Zechy Posted April 23, 2014 Share Posted April 23, 2014 Hi, for my snooker game I need create an area in shape of letter "D", for the setting white ball to it. Is there easier way to create this area than create inaccurate polygon in this shape? Quote Link to comment Share on other sites More sharing options...
Zechy Posted April 23, 2014 Author Share Posted April 23, 2014 Again faster than my mind. It can be created circle and rectangle. This circle must be on center of table(axis X) and line where this "D" starting(axis Y). Rectangle must be on half of circle and than just check if is point in this two shapes. var d_circle = new PIXI.Circle(x, y, radius); var d_rect = new PIXI.Rectangle(x, y, width = circle_radius, height); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.