Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 11 Feb 2013 11:05 PM |
http://wiki.roblox.com/index.php/EasingStyle
What's the equation they're putting these things through? Linear is obvious, y=x, sine is obvious, y = math.sine(x), but what about these others?
Can someone help me identify the equations that are being used in the EasingStyles calculations (For 0-1, obviously).
|
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
|
| 12 Feb 2013 12:18 AM |
| string.rep("very complicated math",100) |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 12 Feb 2013 01:05 AM |
| Come on, I've already figured out quad to be x^2 |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 01:26 AM |
Well quart and quint are x^4 and x^5 respectively.
Do you now only need back, bounce and elastic? |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 01:33 AM |
| I used google and found some equations by Robert Penner |
|
|
| Report Abuse |
|
|
| |
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
| |
|
|
| 12 Feb 2013 07:21 AM |
(6x^2-5x^3)
I dunno, one of them could be sort of shaped like that. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
| |
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 12 Feb 2013 07:23 AM |
| wen do u lrn this stuf in schol lik wat grade |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
| |
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 12 Feb 2013 07:30 AM |
| im srs the most weve gone ovr is puthagorin ferum |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 07:32 AM |
I've never been taught this, but I've encountered resources that have allowed me to learn stuff like this. Usually, when I see something and think: "Oh! I want to do that!" I have to look it up and do research, and I find stuff looking for other stuff, for example, this equation: y = 3x^2-2x^3 I found it on the internet while looking for a way to generate perlin noise. It's a graph of an interpolation thingy. It's even symmetrical. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 12 Feb 2013 08:50 AM |
@booing,
i know rite
i feel ur pain
my class failed exam 'cuz they didnt know what le ratios were
only i passed 'cuz they taught me that while i was still in england |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 12 Feb 2013 04:19 PM |
| You come across this in (American-leveled) Algebra II classes. |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
| |
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 12 Feb 2013 04:22 PM |
I'm in 5th grade. (Technically 7th due to my ITBS scores.)
so dis is herd |
|
|
| Report Abuse |
|
|
Lombardo3
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 271 |
|
|
| 12 Feb 2013 05:17 PM |
| I'm in 10th and I'm laik wut |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 05:25 PM |
>not teaching yourself
casuals |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
| |
|
Anaminus
|
  |
 |
| Joined: 29 Nov 2006 |
| Total Posts: 5945 |
|
|
| 12 Feb 2013 06:54 PM |
This page shows the math behind just about every one of the tweening styles. Easing direction is there as well.
http://javascript.info/tutorial/animation |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 13 Feb 2013 12:24 AM |
Thanks. Don't some of the more complicated ones (Bounce, elastic), seem a bit weird on their animation system? Also, can someone explain why this:
function circ(progress) { return 1 - Math.sin(Math.acos(progress)) }
Actually creates a circle? Is acos() the inverse function of cos? And why does that make a circle?
|
|
|
| Report Abuse |
|
|
|
| 13 Feb 2013 08:07 AM |
arccos(-1) = pi = 180 degrees sin(pi) = 0
arccos(0) = pi/2 = 90 degrees sin(pi/2) = 1
If math had certain types of numbers, you would pass the x component of a position on a unit circle to arccos, and it would return an angle. When you pass the angle to sin, it returns the y component of a position on a unit circle.
The y component is a function of the x component. It's literally drawing a circle. Or, at least the half it can draw without blowing anything up.
|
|
|
| Report Abuse |
|
|
HotThoth
|
  |
 |
| Joined: 24 Aug 2010 |
| Total Posts: 1176 |
|
|
| 13 Feb 2013 06:38 PM |
Googled "tweener", used "I'm feeling lucky", found a site containing well-documented source for a tweening system which will give you insight into all the EasingStyles.
- HotThoth
~ Think happy Thoths ~
|
|
|
| Report Abuse |
|
|