Collision det. inside of an object

Cak3Hol3
Posts: 3
Joined: Tue Dec 11, 2007 4:58 pm

Collision det. inside of an object

Post by Cak3Hol3 »

Hi,
I just wanted to ask if i can make object for example big cube and set collision detection on the inside, and have other objects inside of that cube?
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Re: Collision det. inside of an object

Post by ola »

If your cube may be static, you can do this if the cube is created from a mesh (not the box shape). The walls will be "paper thin" and you can place objects inside it.

If the cube is to be dynamic as well, you'll probably have to build a cube from 6 relatively thin walls made of box shapes (not too thin, that might cause issues), combined in a compound shape. The mesh won't work in that case because dynamic meshes may only be convex.

Or use Gimpact (haven't used that myself yet). With that you could use the box mesh and still make it dynamic.

Best regards,
Ola
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Collision det. inside of an object

Post by sparkprime »

If you just want the cube to provide an "arena" you can just use 6 planes. This will mean you cannot have anything outside the cube though.