Using touch transformation to scale from where touched

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

Moderator: Support

Post Reply
Luke47921
Posts: 32
Joined: 21 Oct 2015, 13:23

Using touch transformation to scale from where touched

Post by 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?

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

Re: Using touch transformation to scale from where touched

Post by 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

Luke47921
Posts: 32
Joined: 21 Oct 2015, 13:23

Re: Using touch transformation to scale from where touched

Post by 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.

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

Re: Using touch transformation to scale from where touched

Post by 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

Post Reply