- Home /
How to use a projector
How would I use a projector to, for instance, do a laser sight? Is that even possible? I tried messing around with it, but I couldn't find the right combination of settings. Could anybody list the correct ones? I looked in the docs, but couldn't find anything that shed any light on my situation. Are there settings on the material I'm projecting that need to be set? Thanks for any help.
EDIT: I got that part to work. However, my projector projects through multiple objects, through a wall and onto a bad guy. Is there a way to stop this as well?
Answer by Tetrad · May 03, 2010 at 09:54 PM
Instead of using a projector for that particular application, try using Physics.Raycast and a model / texture of your laser sight.
You'd have a script that continually raycasts to where the player is aiming and updating the position of your laser sight model.
@Tetrad I'll give that a shot. But is there a way to do what I said before? That would make complexity--;
Answer by TaigaStudios · Jul 08, 2010 at 08:03 AM
This tutorial has helped me a lot with weapons DastardlyBanana. This tutorial also has a gun shooting lazer which you could use as a aim laser as well, with little modification.
Your answer
Follow this Question
Related Questions
Projector displays tiled texture across entire scene 9 Answers
Can Unity bake lighting/mapping from a projector? 2 Answers
Projector projects through game objects 1 Answer
Runtime passages through objects 0 Answers
Projector on parts of terrain? 0 Answers