generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: The math behind EasingStyles

Previous Thread :: Next Thread 
Quenty is not online. 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 is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
12 Feb 2013 12:05 AM
very complicated math
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Feb 2013 12:18 AM
string.rep("very complicated math",100)
Report Abuse
Quenty is not online. 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
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
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
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
12 Feb 2013 01:33 AM
I used google and found some equations by Robert Penner
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
12 Feb 2013 02:17 AM
Dangit, I missed it.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
12 Feb 2013 03:02 AM
very complicated math
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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 is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
12 Feb 2013 07:23 AM
urm

i hate math
Report Abuse
booing is not online. 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 is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
12 Feb 2013 07:27 AM
^
preschool
Report Abuse
booing is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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 is not online. 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 is not online. 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 is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
12 Feb 2013 04:20 PM
what tenal said
Report Abuse
Garnished is not online. 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 is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
12 Feb 2013 05:25 PM
>not teaching yourself

casuals
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
12 Feb 2013 05:44 PM
^
Report Abuse
Anaminus is not online. Anaminus
Top 100 Poster
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 is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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 is not online. HotThoth
Forum Moderator
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image