Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a brick disappear when you don't look at it?

Asked by 8 years ago

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.

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

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)
0
ok, ill try this later flufffybuns 89 — 8y
Ad

Answer this question