Not sure how to get the vector2 right.
{
//todo: set vector to mouse position
bulletRB.AddForce(Vector2.right * bulletSpeed, ForceMode2D.Impulse);
if (transform.position.x > destroyBoundary || -transform.position.x < -destroyBoundary || transform.position.y > destroyBoundary || -transform.position.y < -destroyBoundary)
{
Destroy(gameObject);
}
}```
the Vector2.right dictates the bullet's current trajectory. Trying to just input a Vector2 with Input.mousePosition.x and y has the bullet not even load in my game.