Hello everyone Please tell me how to release the beam in the local direction? Then in the direction where the Z axis is directed (blue).
I think it still needs to be drawn correctly.
Here is my current code:
Hello everyone Please tell me how to release the beam in the local direction? Then in the direction where the Z axis is directed (blue).
I think it still needs to be drawn correctly.
Here is my current code:
You need to supply it the proper direction. Vector3 as used there is always pointing North. Try using the transform.forward of the transform that you are clearly moving in that vid.
Just replace “Vector3.forward” with “transform.forward” in your code.
Thx)
A possibly useful post I made some years ago: