Transform.forward * vector3

In short I’m using .AddForce with transform.forward but I want to cancel out the vertical axis…
I know how to achieve this however I can’t get the syntax right…

rigidbody.AddForce(transform.forward * speed * Vector3(1, 0, 1));

The only other post I’ve been able to find is this post, that unfortunately doesn’t help much
Thanks in advance :slight_smile:

rigidbody.AddForce(new Vector3 (transform.forward.x, 0, transform.forward.z) * speed);