Jump to content
  • Advertisement
Sign in to follow this  
sufficientreason

2D Visibility for Overlapping Objects?

This topic is 1160 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi again,

 

I've been looking at 2D visibility algorithms like this one (actually I want to use it for applying explosion force and damage). However, the algorithms I've found don't support concave objects, or overlapping convex objects. Are there any tricks for getting this to work? I have bodies comprised of multiple different overlapping shapes in my physics engine.

 

Thanks!

Edited by sufficientreason

Share this post


Link to post
Share on other sites
Advertisement

Hi again,

 

I've been looking at 2D visibility algorithms like this one (actually I want to use it for applying explosion force and damage). However, the algorithms I've found don't support concave objects, or overlapping convex objects. Are there any tricks for getting this to work? I have bodies comprised of multiple different overlapping shapes in my physics engine.

 

Thanks!

 

The linked article does support multiple overlapping square objects, at least in the 'playground' portion of the article.

Share this post


Link to post
Share on other sites

It does, but you can see the edge coverage is off. Since writing this post I've figured out how to do multiple objects by computing a concave hull, so I think I'll go ahead and do that. Thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!