@Rob I used to be good at maths and (maybe because itâs early) thatâs clear as mud! Maybe because you skipped all parts of finding out what % of 128 , 41 is? Iâm guessing, as I said, itâs early and your post lost me after the pixels per percent; it just seems to presume knowledge of some numbers and doesnât explain where they came from.
I got my head around it (especially as Iâm defying orders and working with 128x40 - no problems so far, early morning maths aside ) by looking at it the following way:
Weâve decided 1 World Unit is 128 pixels - this is a fairly arbitrary decision based on block/paddle width. However our block isnât a full World Unit high, ie. itâs less than 128 pixels on the y axis.
If we work out how many times the âheightâ of our block goes into its width, we can then divide the World Unit width of the block by the same number to get the World Unit equivalent of its height.
So, for a 41 height block, you divide width by height (128/41) and get 3.12195122
And then convert to World Units: 1 / 3.12195122 = 0.3203125 which rounds to 0.32
Anyway, glad you managed to get the snap working @Vaughan_MacEgan