i need to shoot an object to the forward of that object but when i write rigidbody.velocity = Vector3.down * 10;
it shoots the object forward not by it’s rotation but by the world’s forward.
how do i change i t so that it will shoot forward to that object(by it’s rotation)?
You can use instead the forward vector of the objects transfom:
transform.forward
Try this…
rigidbody.velocity = transform.forward * 10f;