hello its me chrono maybe and as I said
in my previous video let's solve the
inertia problem so we're not your
problem is a problem in which basically
a game feels really unresponsive because
you have this inertia effect every time
it moves see that so annoying and it is
really annoying doesn't make it makes
you want to press the button harder mash
up keyboard just break the whole ah
so the reason you have this problem is
because of the two lines of code I'm
going to show you right now right now
there are two lines of code VG's typical
what do you call that movement script
right I have made it fairly simple just
feed the reference to your rigidbody I
just put it to public so that I could
just yes so that I could just drag and
drop it here that's why I have it in
public so there won't be any other
distractions to show you so now what is
the problem you have is these two codes
you have to replace this code with
simple other codes that will make they
will not have inertia effect the reason
you have energy and strength is this
code gives a smooth out value of the x
axis and y axis every time you press the
left or right button right okay yes
right and this pushes the object this
object every time you press the button
it will push the object to a specific
direction when you press the button so
when you push up push something with
force some inertia is applied so we have
to remove these codes and use something
else so first of all use instead of get
axis use the axis rock done the first
problem is solved and instead of these
cold right you can use RB dot velocity
is equal to n inside of this bracket
after this air force copy all this write
whatever you have copy this and paste it
here for a semicolon and let's just
comment this out and yeah it's done but
if you're messing with velocity and you
should not have an update function you
should always have a fixed update
function fixed update now if you save
that sorry for this now if you save this
go to unity take some time to load now
you can see before it was really laggy
felt really unresponsive and now when
you play the game
it is really responsive so that is it
thanks for watching I guess tomorrow
I'll make a video about recall an
animation problem may be alright one day
I don't know so this is how you solve
the inertia problem like if you like it
dislike if you didn't like it please
support the channel by subscribing and I
hope to see you next time thank you for
watching
[Music]