Relative Content

Tag Archive for unity-game-enginegame-development

Issue with AddForce to player object in Unity

Im having a problem with addForce to player rigidbody. The issue is i made playerMovement with changing velocity and it is constantly overwritting player velocity and then when i want to addForce to player it is instanty overwritten. Problem is in the first if statement both of those playerRb.velocity

Making 3d object fade in/out in Unity

Well, there is a lot of questions related to the topic but nothing has helped me so far.
I’m trying to make an object appear/disappear smoothly by changing it’s transparency, however transparent shaders make object always a bit transparent.

Character Jumping Higher While Moving

Recently, I have been working on a character controller which’s movement was similar to the one’s in Celeste. I was able to get the run down, but the jump is really awkward. Despite all my efforts, the jump feels floaty and buggy, as the character jumps extremely high while moving. On the other hand, if I do a stationary jump, the character goes up every so slightly and comes back down. Along with that, the variable jump height is really weird. If I hold down the jump key for as long as possible, my character almost starts floating up, and when it hits the peak of the jump, it comes back down like a balloon (Even though I’ve added gravity to my code). Here’s the code: