How do you make a brick disappear when you don't look at it? I've tried look vector, but I don't really know how to use it.
COMMUNITY QUESTION
How to make a brick disappear when you don't look at it?
1 answer
Haven't done this myself, but might be able to draw a ray or raycast to do a "line of sight" test and essentially the ray will run into an object, and if it does so you can make it visible.
You might find this useful to create a Ray (from wiki)
Ray.new(Vector3 origin, Vector3 direction)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ok, ill try this later