Hi All,
I’m just trying to play around with physics and try to get my head round it. For a working example I was going to do a pool table.
What is the best way to go about this in regards to detecting the pool table cushions?
I don’t understand much about the physics side of things yet but initially I thought I would have to chop up an image of a pool table then set each piece of cushion as a static object then declare its polygon / rectangle shape coordinates?
I then sort of discovered its probably possible to just use an image of a pool table and then use drawlines and coordinates to detect the cushions?
Are there any disadvantages to using the drawline method?
If I was to go down the drawlines route, how do the coordinates cope with scaling if I was building for multiple devices? Will it just scale up and recalculate the coordinates with the width and height set in config.lua or must I type 2 lots of draw lines for the cushions… one for bigger devices and one for small?
Any insight on this would be greatly appreciated!