Games Use Bezier Curve algorithm in Games

TelKel81

Active Member
Licensed User
Are you adding some "tweening" to those animations ?
That would make an absolutely awesome B4XLib :)
 

Sandman

Expert
Licensed User
Longtime User
sorry but but means "tweening"?

”Inbetweening, also known as tweening, is a process in animation that involves creating intermediate frames, called inbetweens, between two keyframes. The intended result is to create the illusion of movement by smoothly transitioning one image into another.”
 

ilan

Expert
Licensed User
Longtime User
so like a fading effect between 2 frames?
in my opinion the animation is smooth enough and if you want want a smoother animation just increase the points.
as you can see there are a 100 points limit so the path is created with 100 points. if you put 200 then the animation will be 2x smoother and also slower so you need to increase the speed.
 

TelKel81

Active Member
Licensed User
Easing / Tweening : https://easings.net/en
But beforehand the distance between each point has to be the same otherwise you would get movement that does not match with the expected easing animation.
Is the distance between each point the same in your list of points generated for the curve ?
 

ilan

Expert
Licensed User
Longtime User
Easing / Tweening : https://easings.net/en
But beforehand the distance between each point has to be the same otherwise you would get movement that does not match with the expected easing animation.
Is the distance between each point the same in your list of points generated for the curve ?
it depends on the curve you draw if the distance is the same or not. probably most times it will not be the same and i am also not creating any easing animation in the animation above.

i can see where such a library (that includes easing animation) could be useful like animate views but not useful in game making.
 
Top