How do you implement inertia for your character in platformer?
I wanted to add some "weight" to my character, implementing inertia, i.e. adding acceleration and braking time.
I came up with some 3 methods how to do it.
\- Linear acceleration. Adding same amount of velocity in Fixed update. The main problem here was that the character became too slow. It slowly reacts on fast button press.
\- Lerp. float newVelocity = Mathf.Lerp(currentVelocity, targetVelocity, acceleration); - this way is better, as reaction to button press is quick. But it acceleration parameter is not intuitive and it is hard to calculate acceleration time. Moreover the graphic of acceleration is always the same and it means the lack of control.
\- Using AnimationCurve accelerationCurve; - It is hard to implement as this method, as it has some not obvious corner cases, but such curves give most of control and with this method we can implement both a linear and lerp acceleration.
How do you implement acceleration and braking in your game, or do you implement it at all?
https://redd.it/1gfqqo6
@r_Unity3D
I wanted to add some "weight" to my character, implementing inertia, i.e. adding acceleration and braking time.
I came up with some 3 methods how to do it.
\- Linear acceleration. Adding same amount of velocity in Fixed update. The main problem here was that the character became too slow. It slowly reacts on fast button press.
\- Lerp. float newVelocity = Mathf.Lerp(currentVelocity, targetVelocity, acceleration); - this way is better, as reaction to button press is quick. But it acceleration parameter is not intuitive and it is hard to calculate acceleration time. Moreover the graphic of acceleration is always the same and it means the lack of control.
\- Using AnimationCurve accelerationCurve; - It is hard to implement as this method, as it has some not obvious corner cases, but such curves give most of control and with this method we can implement both a linear and lerp acceleration.
How do you implement acceleration and braking in your game, or do you implement it at all?
https://redd.it/1gfqqo6
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Any good tutorials for making a card game?
I was wondering if there were some good tutorials on making a TCG like Magic, or something like slay the spire
https://redd.it/1gfrr05
@r_Unity3D
I was wondering if there were some good tutorials on making a TCG like Magic, or something like slay the spire
https://redd.it/1gfrr05
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
I tried to make funny and memorable achievements for my horror game. And these are my favorites :D
https://redd.it/1gfnxyh
@r_Unity3D
https://redd.it/1gfnxyh
@r_Unity3D
Reddit
From the Unity3D community on Reddit: I tried to make funny and memorable achievements for my horror game. And these are my favorites…
Explore this post and more from the Unity3D community
Hiring an artist was the best decision I made for my game! | 2-month comparison
https://redd.it/1gful3y
@r_Unity3D
https://redd.it/1gful3y
@r_Unity3D
Reddit
From the Unity2D community on Reddit: Hiring an artist was the best decision I made for my game! | 2-month comparison
Explore this post and more from the Unity2D community
Unity should have way stricter threshold regarding the asset store
Search for anything, and 80% of the resulting assets are utter trash.
I am talking about low quality, low effort, amateurish assets.
Am I the only one bothered by this?
https://redd.it/1gfx4hq
@r_Unity3D
Search for anything, and 80% of the resulting assets are utter trash.
I am talking about low quality, low effort, amateurish assets.
Am I the only one bothered by this?
https://redd.it/1gfx4hq
@r_Unity3D
Reddit
From the Unity3D community on Reddit
Explore this post and more from the Unity3D community
This media is not supported in your browser
VIEW IN TELEGRAM
Hey guys I'm working on a Bullet Hell prototype, you control a spaceship with the mouse, move, shoot, slowmotion and dash. What do you think?
https://redd.it/1gfw4v6
@r_Unity3D
https://redd.it/1gfw4v6
@r_Unity3D
We are working on stylized game, want to share our skateboard. These have 3 LODs. What do you think?
https://redd.it/1gfyt01
@r_Unity3D
https://redd.it/1gfyt01
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Built with Unity and crafted with a lot of heart.
We’re starting to grow our community and will kick off playtesting soon!
https://redd.it/1gg1754
@r_Unity3D
We’re starting to grow our community and will kick off playtesting soon!
https://redd.it/1gg1754
@r_Unity3D
A while back I discovered that you could attach a Debugger to Unity using Visual Studio...and my life changed
I've been a hobby dev in Unity for over 5 years, and I also found debugging to be such a PITA. Writing hundreds of Debug.Logs everywhere and trying to piece together what's happening at run time.
I've also been a professional JS/Web developer for the past couple years, using the the debugger console religiously. And then one day it finally clicked "Why the hell is there no proper debugger for Unity?"
Turns out there was, I was just dumb and didn't even realize it. Hundreds (thousands?) of hours of painful debugging later...
So yeah, use the Debugger if you aren't already.
https://redd.it/1gg1amv
@r_Unity3D
I've been a hobby dev in Unity for over 5 years, and I also found debugging to be such a PITA. Writing hundreds of Debug.Logs everywhere and trying to piece together what's happening at run time.
I've also been a professional JS/Web developer for the past couple years, using the the debugger console religiously. And then one day it finally clicked "Why the hell is there no proper debugger for Unity?"
Turns out there was, I was just dumb and didn't even realize it. Hundreds (thousands?) of hours of painful debugging later...
So yeah, use the Debugger if you aren't already.
https://redd.it/1gg1amv
@r_Unity3D
Reddit
From the Unity3D community on Reddit
Explore this post and more from the Unity3D community
Media is too big
VIEW IN TELEGRAM
Hi, guys! I'm making Alone Time, a farming/survival game where you play a laid-off programmer trying to start over. You go to the countryside to take care of a farm, rescue cats, play music and create a cozy home. It's for those who enjoy a laid-back vibe with animals and music!
https://redd.it/1gg8sol
@r_Unity3D
https://redd.it/1gg8sol
@r_Unity3D
Im making a top-down game with unity, these are the main animations of my customizable character
https://redd.it/1gga61l
@r_Unity3D
https://redd.it/1gga61l
@r_Unity3D
Reddit
From the Unity2D community on Reddit: Im making a top-down game with unity, these are the main animations of my customizable character
Explore this post and more from the Unity2D community
Media is too big
VIEW IN TELEGRAM
Finally released our 4 player co-op game after 4 months of development
https://redd.it/1ggb1y1
@r_Unity3D
https://redd.it/1ggb1y1
@r_Unity3D