Jump to content

What is a bounding box?


temnix

Recommended Posts

Posted

I created a trigger region for an area in Near Infinity. I added five vertices to it, from what I understand that takes nothing more than clicking them up, as many as you need, with coordinates. The region was brought out and I can preview it in the toolset, but it is not detected by my thieves when actually playing, nor does the trap (this is a trap) release its scripted spell when walked over. I have got "Trap detectable" ticked on, of course, and the difficulty isn't high, so there must be something wrong with the settings. I was working from an existing region for this trap, I moved it to all new vertices, and the coordinates for "Bounding box" must be different now, so that may be the reason, but I have no idea what a bounding box is in the first place. Why does it have four coordinates, when this is a pentagonal region? Or is there another reason?

Posted

It's the smallest rectangle you can draw around all the object's vertices. Presumably the engine checks if a sprite is in the bounding box (which is trivial) before bothering to check if it's in the area itself (which is calculationally harder).

Join the conversation

You are posting as a guest. 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...