Page 1 of 1

Using touch transformation to scale from where touched

Posted: 28 Feb 2017, 18:00
by Luke47921
I'm currently using a touch transformation node to zoom into an object attached to it, but when zooming in the object always zooms from the centre, whereas I'd like it to zoom from the point that the user is touching.

Any ideas how I might go about doing this?

Re: Using touch transformation to scale from where touched

Posted: 01 Mar 2017, 08:06
by s-petersen
Hi Luke,

i guess it depends on the center position of your objekt.
meaning, if you have an rectangle (x == center; y == center) so it will zoom from center.
same on an 3D object.

guess there is no way around. :(

sven

Re: Using touch transformation to scale from where touched

Posted: 01 Mar 2017, 12:20
by Luke47921
Hey,

I have tried adding an axis and changing the scaling center but it didn't seem to have any effect.

Re: Using touch transformation to scale from where touched

Posted: 13 Apr 2017, 04:15
by s-petersen
Hi luke,

did you grab the center of your touch and putting the coordinates into your object world node?

cheers
sven