Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...