Hey there, I am trying to add velocity to a 2D object, in 45 degrees to the right, I am aware that I can type: transform.right or transform.up to get different directions, but what if I want to add force, 45 degrees to the right?
This is my current script:
if(Input.GetButton(“Fire1”)){
clicked = false;
goat.rigidbody2D.velocity = transform.right * meterLevel * 2;
}
Thank you for your time