Question by
SilasBaker · Apr 10, 2016 at 10:24 PM ·
android2dmobilescalecollisions
Re sizing an object within a confined space
I'm programming an android game where the user is able to re-size cubes by pinching and zooming with 2 fingers. This works well but i don't want the object to be scaled into walls. Id like a system where the object re-sizes against a wall/walls, or have the object not re sizable if there is not space. I cant think of a very efficient way to do this, are there any math equations I can use to do this, or has anyone done anything like this before.
Ive attached a picture to more easily illustrate what i mean.! Example
resizeexample.png
(18.9 kB)
Comment