Rekindled Phoenix Posted February 8, 2010 Share Posted February 8, 2010 Is there an LE API function, preferably a boolean, whether or not a body is currently colliding with a specific type at a moment in time? I'm creating a disposable object and I want an instant response instead of waiting for the delegate / event / callback to fire. Quote Link to comment Share on other sites More sharing options...
Rick Posted February 8, 2010 Share Posted February 8, 2010 I believe Josh removed that ability, however the callback should be all you need. Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted February 9, 2010 Author Share Posted February 9, 2010 The callback won't work in my situation. I'd have to catch separate threads in order to detect the collisions. Josh why'd you remove the function? Quote Link to comment Share on other sites More sharing options...
Rick Posted February 9, 2010 Share Posted February 9, 2010 Just curious but why won't the callbacks work for you in this case? If you need to do some conditions based on multiple things being collided with you can use some flags to get that working. Otherwise I can't see why you would have issues with using a callback. I believe Josh did this so he didn't have to store all that collision data each cycle. Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted February 9, 2010 Author Share Posted February 9, 2010 I have one thread that creates a collection of bodies and I wanted to instantaneously determine which of them are not colliding with a particular entity type. I guess I could use an asynchronous delegate or call a pick to see if an entity is visible instead. I do agree with Josh's reason for removing the method call though. Thanks Rick Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.