- Home /
 
               Question by 
               siddharth3322 · Apr 11, 2019 at 11:47 AM · 
                2drigidbody2dvelocityjumpforce  
              
 
              Convert Force into Velocity for 2D Player Jump
I want the player to remain at the same speed while he is jumping. At present, it taking a pause while doing the jump.
Here is my player movement code:
  m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity, ref m_Velocity, m_MovementSmoothing);
Here is my player jump code:
 m_Rigidbody2D.AddForce(new Vector2(0f, m_JumpForce));
I knew that I have applied 0 in x-direction force but I want current force value to place over there. So that my player doesn't take any pause and remain at the same speed always. 
 If I require to change my jump code then please suggest me for that too. 
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                