|
Such as homeworld, etc. The "Beam" is likely a simple quad stretched between two points, where the Z axis is always rotated to face the camera. (fyi I'm not certain the particle system would work in this case, as it's not as straightforward to generate an exact beam between two points, and I haven't had much luck generating a solid beam of particles. I might look into this a little more, though) The challenges as I seem them are:
The way I think I would go about this is:
Anyone have any suggestions on going about this?
(comments are locked)
|
|
I've got one simple solution - use Unity's built in Line Renderer, the docs for which are found here. Thanks! I completely forgot about the line renderer. I think part of my brain filed it under "drawing 1 pixel lines". Silly me. I'll check it out, and see if it meets my needs.
Apr 28 '10 at 02:32 AM
jc_lvngstn 1
This looks like it will be perfect. I assume in order have a "flowing" effect, you will just swap out textures, each one shifted slightly?
Apr 28 '10 at 02:38 AM
jc_lvngstn 1
Yeah, that should do the trick.
Apr 28 '10 at 03:19 AM
e.bonneville
Vote up and accept answer?
Apr 28 '10 at 03:19 AM
e.bonneville
Thank you, elbon96!
Apr 28 '10 at 12:19 PM
jc_lvngstn 1
(comments are locked)
|
|
the way i do it is i use raycasts first create a empty GameObject then make a cylinder scale its z axis to .5 then rotate is 90 degrees on the x then make it a child of the empty gameObject set the x position and the z position to 0 then make the z to .5 so that the empty gameObject is at the very back of the empty gameObject. the code attached to the empty gameObject should be: function Update () { var hit : RaycastHit;
} So i don't know how to make it have a texture but you can use a plane or somthing that will work with a texture. but make the y 1 not 0.5.
(comments are locked)
|
