void FixedUpdate()
{
if (Input.GetKeyDown(KeyCode.Space) | Input.GetKeyDown(KeyCode.W))
{
rb.AddForce(transform.up * jumpForce, ForceMode2D.Impulse);
{
}
As the title says, this is not working and I have no clue why/how. The only thing this does is change the GameObject’s velocity value to the value of jumpForce, and it never changes back. The GameObject is never affected.