t2dSceneObject.rendered?
by Kevin James · in Torque Game Builder · 05/04/2010 (11:18 am) · 2 replies
Is there an existing property to indicate if an object is rendered? I know I can get the camera area in world coordinates and check against object position, but I was wondering if TGB already had something built in. Thanks.
About the author
Hobbyist game developer -- free and open source games FTW.
Employee Melv May
If you get the cameras area then perform a rectangular pick operation "scene.pickRect()" on the same area. This is all the camera does, it uses the exact same pick function to determine what objects are in the view.
Hope this helps.