Quantcast
Channel: Answers by "jamesflowerdew"
Viewing all articles
Browse latest Browse all 61

Answer by jamesflowerdew

$
0
0
This might be helpful :) am just writing in the lerp not using mathf, but it works, and as a function . Rect LerpRect(Rect nRect1, Rect nRect2,float nNum){ Rect vRect=nRect1; vRect.x+=(nRect2.x-nRect1.x)*nNum; vRect.y+=(nRect2.y-nRect1.y)*nNum; vRect.width+=(nRect2.width-nRect1.width)*nNum; vRect.height+=(nRect2.height-nRect1.height)*nNum; return(vRect); }

Viewing all articles
Browse latest Browse all 61

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>