shoot projectile from rotated object.

Hi everyone.
I have a rotating cube that rotates on the center of the screen,
I want to make it shoot projectiles as it rotates.
I tried

bulletRigidbody.velocity = transform.up* 50f;

but the projectiles go up always.
please check the video below :


Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.

It seems like you’re multiplying the force by the cube’s upward direction instead of its forward direction.
Try doing

bulletRigidbody.velocity = transform.forward* 50f;