CollisionBox "out"event when totally inside

Return to Scripting Issues

CollisionBox "out"event when totally inside

Postby Nox_firegalaxy » Mon Apr 25, 2011 4:46 am

Hi,

I trying to use CollisionBox for Triggers and noticed that I get an "out" event when an object passed the "wall" of the triggervolume and is completely inside of the volume. Is that (collision only noticed if happens at the walls) the expected behaviour?
Nox_firegalaxy
 
Posts: 120
Joined: Wed Jun 23, 2010 2:16 pm

Postby drwr » Mon Apr 25, 2011 1:41 pm

That's the way CollisionBox is built. It's a hollow box built out of infinitely thin polygons. So, yes, this is "expected" behavior in the sense that it's what the code is written to do.

I agree it's unexpected in relation to the way the other collision solids work.

David
drwr
 
Posts: 11253
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Postby rdb » Mon Apr 25, 2011 1:50 pm

One way to emulate a filled box volume (as opposed to hollow) is to use 6 planes enclosing the box, and treat anything that tests against all 6 planes as intersecting with the box.

I'll probably add this functionality for 1.8.0.
rdb
 
Posts: 8548
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby Niriel » Mon Apr 30, 2012 3:40 pm

rdb wrote:I'll probably add this functionality for 1.8.0.

Did it happen ?
User avatar
Niriel
 
Posts: 62
Joined: Sun Apr 29, 2012 6:10 am
Location: Groningen, Netherlands

Postby rdb » Sun May 06, 2012 5:04 am

No, sorry, I didn't yet. I did work on the math, but I never got around to implementing it.
rdb
 
Posts: 8548
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands


Return to Scripting Issues

Who is online

Users browsing this forum: No registered users and 2 guests