To project a ray forward with respect to the object, you need to use the local z axis of the object's transform.
Uri u kone u vhona vumba kha mavu, u fanela u vhumbuludza mavu matuku wa edzisa u a ita tshivhumbeo tsha C.