for example I want to get the forward of velocity (Vector3) and apply it to the player
as I understand from what you said is that I have to only set the z axis of the player to the value of z axis in the velocity
like
Player.transform.basis.z = velocity.z