Jump to content

Hiding/Showing entity on EntityVisible


Laurens
 Share

Recommended Posts

Hi,

 

My feature request is based on a problem I had in this thread: http://leadwerks.com/werkspace/index.php?/topic/2154-solved-visibility-test/

 

Basically I was unable to perform an EntityVisible test properly because the actual entities were obstructing the view to one another because of the fact EntityVisible really just calls PointVisible with the two entities positions.

 

For PointVisible I can understand this behaviour. However for EntityVisible it would make more sense having the engine hide and show the entities before and after the test so that I do not have to do so myself. It would have saved me a lot of confusion and probably others to :)

 

Cheers!

Link to comment
Share on other sites

  • 4 weeks later...

Shouldn't you hide one or either entity, if they are a mesh? There may be situations where you actually want a mesh to block its own center. I can't think of any off the top of my head, but I want to think over it before making a design change like that.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

If you will go to accept this request, I would suggest to add an optional parameter to auto-show/hide the entities with "false" as default value, just to avoid invalidating any previous code. However I think that the case of a mesh blocking the visibility of its entity falls more in the field of game design than engine logic.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...