Game Development Community

Enclosure area

by Alejandro Lopez · in General Discussion · 06/04/2008 (2:54 pm) · 5 replies

Has the engine something to prevent that the player go to a unwanted area.

like some barrier, i im using a static shape, and put a collision model , but in cant find how set invisible and still collideable.

#1
06/04/2008 (3:02 pm)
I think you could put the texture "NULL.png" on the object.
at least, that works for DIFs.
#2
06/04/2008 (4:17 pm)
Any texture? with that name , and that format ?

:(
#3
06/04/2008 (5:15 pm)
Folks generally use a small 16x16 solid-maroon texture, but yes, it could be any texture, and any format.
it's the name "NULL" which is important.

again, not sure if it works for DTSs.
#4
06/04/2008 (5:39 pm)
Export your dts as Collision-1 as it's name and it will not be renderred, but will allow collisions against it as an invisable barrier. The texture doesn't matter. Somewhere around here is a tutorial that sets the player bounds to certain areas.
#5
06/04/2008 (8:48 pm)
Yes, its worked , and finally i have to changed the propieties, in the inspector menu to disabled the light, because it was making shadows.

thanks a lot.