- Home /
Question by
baconman123654 · Sep 01, 2021 at 01:43 PM ·
first person controller
Why doesnt my wall jumping script work? the regular jumping and wall running works fine. any help is appreciated. 3d character controller
if(Input.GetButtonDown("Jump") && isWallLeft) { transform.Translate(Vector3.right 50f Time.deltaTime); transform.Translate(Vector3.up 40f Time.deltaTime); }
if (Input.GetButtonDown("Jump") && isWallRight)
{
transform.Translate(Vector3.right * -50f * Time.deltaTime);
transform.Translate(Vector3.up * 40f * Time.deltaTime);
}
Comment