Questions tagged [easing]

Easing functions specify the rate of change of a parameter over time.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Rotating on Z axis with easing

I am stuck with rotating a GameObject on the Z axis with easing. I want to achieve an effect like in this game: Here, the ring of targets starts rotating periodically. It starts slower, than ...
Taras Fityo's user avatar
0 votes
1 answer
40 views

Easing curve, find next position given current position and delta time?

I'm want to animate an object using an ease out curve, where it moves fast at time alpha = 0 and slow at alpha = 1 from position ...
Code's user avatar
  • 101
0 votes
1 answer
37 views

Make linear parameter change seem chaotic

I'm trying to solve a challenge with linearity of my animation. Let say we have a Tug of war mechanic. One team is much stronger and it moves line from point A(0) to point B(10) with a speed of 1 unit ...
Ardoos's user avatar
  • 29
0 votes
2 answers
627 views

Smooth rotation to target with separate yaw, pitch and roll smooth times

I'm trying to write a camera script in Unity that would smoothly rotate the camera over time towards the desired rotation, with separate input parameters for yaw, pitch and roll smoothing, and I can't ...
Kirby5's user avatar
  • 1
0 votes
1 answer
265 views

How can I ease in and out of a Lerp motion over a set duration?

Here is the code I am using: ...
Jhon RA's user avatar
  • 11
1 vote
0 answers
498 views

How to use SmoothDamp with speed?

I have a moving platform which is being moved like this: ...
UnityHlep's user avatar
2 votes
1 answer
57 views

Raise/Lower Object Height Based on Distance, with Easing

I'm trying to make an indicator object appear higher up in the sky the farther away a player is, up to a certain distance. Basically, if the player is < 5 distance away, the object's height should ...
user1960364's user avatar
1 vote
1 answer
149 views

How to ease toward a rotation limit, instead of stopping abruptly?

I rotate my camera using a framerate-independent exponential ease-out blend like so: ...
tmighty's user avatar
  • 859
0 votes
1 answer
324 views

How should I design an easing class in C++?

I'm currently struggling to find a good approach for an easing class for my game. The class holds some easing effects, like elastic-in-out, and should be called by menu buttons, players and enemies ...
elasticman's user avatar
4 votes
1 answer
146 views

Easing towards stepped value

I'm currently developing this rhythm game in lua (on top of a c++ engine) and I'm having trouble keeping a steady playhead position for the song currently playing. The playhead position that the ...
burzum's user avatar
  • 43
7 votes
4 answers
3k views

Interpolation using cubic Bezier curves

I am trying to create an interpolate function for an animation library to achieve a tweening effect between frames. I want this to work with Bezier curves. I have created a jsFiddle (here) of my ...
Jackson's user avatar
  • 231
1 vote
0 answers
75 views

How can I make this easing function less jumpy? [closed]

I have this function that acts as an ease-in: protected static function easeIn(ratio:Number):Number { return ratio * ratio * ratio; } Ratio is a value ...
Artemix's user avatar
  • 527
1 vote
1 answer
129 views

Looking for an easing equation

I am looking for an easing equation with the following properties: It starts at a velocity of zero, and eases into a constant velocity of 1 for a duration of t_1 ...
mklingen's user avatar
  • 3,597
1 vote
1 answer
71 views

How to convert strict limit in position into gradual slow down?

The player moves a spell object, the spell must stay withing a certain range of the player. The spell is moved using a physics system and it has mass and velocity. Currently when the spell goes out ...
Ian Hern's user avatar
  • 121
15 votes
3 answers
5k views

What are easing functions?

I found this cool website for game development and it has a list of easing functions: Although the site contains a description of what they're for, it goes over my head. What are easing functions ...
Daniel Kaplan's user avatar
30 votes
3 answers
9k views

How do I lerp between values that loop (such as hue or rotation)?

View Demo I'm trying to make the joint rotate smoothly around the center of the canvas, toward the angle of mouse pointer. What I have works, but I want it to animate the shortest distance possible ...
jackrugile's user avatar
4 votes
1 answer
848 views

Cubic bezier for easing?

I would like to find out what Y is if X is a certain number from a cubic bezier curve to make a custom easing function, like it's done on this site: http://cubic-bezier.com/ Does anyone know a formula ...
user1974555's user avatar
1 vote
1 answer
232 views

Multiple concurrent Tweens

I'd like to be able to direct a game object to move to a new target position over a certain amount of time. There are lots of different easing functions available, but for now let's say I'm just ...
TenFour04's user avatar
  • 475
1 vote
2 answers
356 views

Easing equations with moving end points

Usually easing equations have 4 parameters: time duration begin point end point For example: ...
Heisenbug's user avatar
  • 2,124
0 votes
1 answer
435 views

Tweening in 2d side-scrolling RPG

I'm working on a 2d side-scrolling RPG-ish game. Currently the movement of the main character(hero) is based on the A and D keys, because it's 2d and I don't really care about jumping. I would like to ...
Felix's user avatar
  • 43
9 votes
2 answers
2k views

How do I simulate a swinging pendulum?

I want to simulate a rope with a weight attached, swinging back and forth like a pendulum. Any actual physics is overkill; it's just endlessly repeating the same motion. JQuery has a the "swing" ease ...
mjanisz1's user avatar
  • 247
2 votes
2 answers
716 views

Animating a background 'pulse' with easing equation

I'm trying to find a suitable easing equation (or other method) to animate an object so that it 'pulses' (imagine a 'spike' on a music visualiser, or see the image I drew badly below) 'v' is the ...
codinghands's user avatar
2 votes
2 answers
1k views

Stop a rotating object at a specified angle?

I'm working in JavaScript with HTML5 and the canvas. I have an object which is rotating at a certain speed, and I need the object's rotation to slow down gradually and the front of the object to stop ...
Krummelz's user avatar
  • 123
2 votes
2 answers
2k views

Problems using easing equations in C# XNA

I'm having some trouble using the easing equations suggested by Robert Penner for ActionScript (http://www.robertpenner.com/easing/, and a Flash demo here) in my C# XNA game. Firstly, what is the ...
codinghands's user avatar
4 votes
4 answers
1k views

Vary speed of enemy smoothly

Hey. I'm trying to create an enemy that travels at a speed s on screen but I'm having trouble with trying to make the speed vary in a smooth motion. Basically, I ...
Skoder's user avatar
  • 367
11 votes
2 answers
2k views

Easing Functions

I started to involve myself with easing functions (Flash AS3), came about in trying to understand TweenLite and Robert Penner's website: http://www.robertpenner.com/easing/ The question I have is ...
user avatar