Attempting to ReadPixels outside of RenderTexture bounds! Reading (1792, -1008, 2560, -576) from (768, 432)
I’m new to Unity and I have been hardstucked for a couple of days trying to figure out what I’m doing wrong.
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:
Hipfire calculations when shooting, calculating a random raycast direction inside the crosshair
I am developing a FPS project with Unity, I tried searching for a way to make the gun shoot inside the crosshair but I didn’t find anything about it.