Versions with this page:
Versions without this page:
Creates a ray starting at origin along direction.
origin
direction
// Create a ray from the transform position along the transform's z-axis Ray ray = new Ray(transform.position, transform.forward);