Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Visible objects count function
Old
123fakeuser
Guest
 
Status:
Posts: n/a
Smile Visible objects count function - 04-08-2009, 03:54 PM

How do I write a world function which returns a count of the number of objects which are visible within the world?
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 04-08-2009, 05:46 PM

That's going to be very difficult, especially if you have a lot of objects. I'm assuming you mean objects the camera can see - the total number of objects in a world can't be changed during run time.

Maybe the attached - very simple - will help get you started. Note that for even one object and a very simple test (in front of or not) - setting up the test condition is far from obvious.
Attached Files
File Type: a2w count objects.a2w (318.6 KB, 16 views)
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.