Jump to content

Recommended Posts

Posted

I think in some transparent 3D thin cylinder mesh and use raycast to determine if it hits something before it's max lenght.

Can it be done in another way ?

 

How to modify the lenght of cylinder mesh in real time ?

Some local Scaling of Z value ?

laser4.jpg

  • Upvote 1

Stop toying and make games

Posted

Are you sure it's done that way is commercial games? Because I think if you just draw a line it's going to look wonky with a uniform thickness.

 

As far as I can see from a quick search, it is not a line: https://www.google.com/search?q=resident+evil+laser+sight&espv=210&es_sm=122&source=lnms&tbm=isch&sa=X&ei=zaT3UsW-HY_poASa3YLADg&ved=0CAkQ_AUoAQ&biw=1360&bih=643#q=resident+evil+laser+sight&tbm=isch&imgdii=_

 

It has diminishing thickness, and a sort of noisy transparent texture applied.

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...