question about trigger_range

Posted By: LazyDog

question about trigger_range - 01/15/07 15:07

hi,

from the manual:
The trigger ranges are boxes with radius trigger_range around the origin of the moving entity, and around the bounding box of the triggered entity

to make things simple for my question pretend both entities bounding box is a length of 1 and both trigger_range values are a value of 1.

I want to show a box representing the trigger range for both entities.

does this mean that the box for the moving entity would have length of 1
and the box for the triggered entity would have a length of 2?

thanks,
LazyDog
Posted By: jcl

Re: question about trigger_range - 01/16/07 09:40

Yes. I haven't programmed the trigger event, but I'd also interpret the manual that way.
Posted By: LazyDog

Re: question about trigger_range - 01/19/07 03:37

I was wondering if you could explain your algorithm for generating your bounding box for the trigger range. The reason I ask is that I'm having problems matching what I calculate for the trigger range visually and what is actually triggering. I must be calculating something wrong.
Posted By: jcl

Re: question about trigger_range - 01/19/07 09:32

As I understand the manual, the bounding box has a size of both trigger ranges plus the bounding box of the triggered entity. If both entities are within that bounding box, the event will be triggered. Additionally, both entities need to be in the same level sector. A level sector is 1/32 the level size, so on very small levels this might affect triggering also. Make your level large enough so that 1/32 is bigger than your trigger bounding box.
© 2023 lite-C Forums