TransformGesture with additional Limits

Got a good idea for TouchScript? Post it here.

TransformGesture with additional Limits

Postby tswalk » Mon Aug 07, 2017 6:08 am

I like the new Inspector features for TouchScript in 9.0, been working around with it the past week and had a few thoughts. One thing that would be great is to be able to specify limits for certain transform properties such as Scaling, Rotation, and Translate. For range limits, having an optional toggle for easing near limit boundaries could be a nice effect. :)

(e.g.)
Scaling:
- default: infinite
- range: (float,float,float)
-- option: easing (on/off)
--- (on) Power: (float) {would control the p in f(t) = tp}

https://docs.microsoft.com/en-us/dotnet ... mework-4.7
https://docs.microsoft.com/en-us/dotnet ... -functions

I guess there's so many different formulas that could be applied, but I think a simple power ease would be interesting to start.

Perhaps these could be options on the Transformer or better just under Limits for TransformGesture?.. not sure.
User avatar
tswalk
 
Posts: 33
Joined: Sun Sep 20, 2015 6:37 am
Location: Texas, US

Re: TransformGesture with additional Limits

Postby valyard » Mon Aug 07, 2017 2:28 pm

Need to think about it.
I had a few attempts to do this but I'm not sure if this functionality should be built-in.
valyard
Site Admin
 
Posts: 422
Joined: Mon Sep 08, 2014 11:57 pm

Re: TransformGesture with additional Limits

Postby tswalk » Mon Aug 07, 2017 11:06 pm

I can understand. For now I'm just doing a simple scaling limit in LateUpdate which works fine.
User avatar
tswalk
 
Posts: 33
Joined: Sun Sep 20, 2015 6:37 am
Location: Texas, US

Re: TransformGesture with additional Limits

Postby kaltemrix » Tue Aug 29, 2017 2:19 am

Could you post a code snippet of your scaling limit? All my attempts have made it super jittery and doesn't work nicely.
kaltemrix
 
Posts: 12
Joined: Wed Aug 02, 2017 3:16 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest