Using touch transformation to scale from where touched

Q and A about functionality and how to solve a special task for your application.

Using touch transformation to scale from where touched

Postby Luke47921 » 28 Feb 2017, 18:00

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?
Luke47921
 
Posts: 27
Joined: 21 Oct 2015, 13:23

Re: Using touch transformation to scale from where touched

Postby s-petersen » 01 Mar 2017, 08:06

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
User avatar
s-petersen
 
Posts: 16
Joined: 25 Mar 2015, 11:07
Location: wuppertal | germany

Re: Using touch transformation to scale from where touched

Postby Luke47921 » 01 Mar 2017, 12:20

Hey,

I have tried adding an axis and changing the scaling center but it didn't seem to have any effect.
Luke47921
 
Posts: 27
Joined: 21 Oct 2015, 13:23

Re: Using touch transformation to scale from where touched

Postby s-petersen » 13 Apr 2017, 04:15

Hi luke,

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

cheers
sven
User avatar
s-petersen
 
Posts: 16
Joined: 25 Mar 2015, 11:07
Location: wuppertal | germany


Return to How to...

cron