Is renderable?
by Gustavo Boni · in Torque Game Builder · 02/01/2007 (12:26 pm) · 5 replies
Hi,
Is there an way to know if an object is being renderable? I mean, if its visible for the camera.
Thanks
Is there an way to know if an object is being renderable? I mean, if its visible for the camera.
Thanks
#2
02/01/2007 (5:09 pm)
@Apurva: what i mean is know if the object is in the bounds of the camera, not if its invisible or not.
#3
02/01/2007 (10:07 pm)
It is simple. Get the camera area in world coordinates and check a position of interested object. Simple vector math, nothing more.
#5
Thanks.
02/02/2007 (3:53 am)
@Igor: Thanks! I was just supposing there was a function in TGB for that, just to make sure and dont reinvent the wheel. =)Thanks.
Torque Owner Apurva Amin
getVisible() which returns true if it's shown and false if it's invisible.
hth