Reflection problem?

Reflection works perfectly fine when I use it with Debug.DrawRay function, however when I try it with an actual cylinder object it’s not working.

var reflectionAngle =Vector3.Reflect (transform.TransformDirection(0, 0, 1),hit.normal);

Laser.transform.position=hit.point;                         
Laser.transform.eulerAngles=reflectionAngle;            //NOT WORKING

Debug.DrawRay(hit.point, reflectionAngle*100 , Color.blue);           //WORKS FINE

Has anyone know what’s wrong?

Thanks

that the debug works makes sense cause that part is correct.
But your usage as angle makes completely no sense as the vector you get is no angles, its a direction.

Generally it sounds like you want to use the Quaternion creator function there that allows you to define a rotation around an axis and use the reflectAngle as axis

Thanks dreamora you’re right its a direction. I don’t know why I thought that it was angles. it works fine now