Invisible collision border

Started by Berunin, January 12, 2013, 04:36:20 PM

Previous topic - Next topic

Berunin

Hello all.. I create little game and I do not know how to make invisible collide border... :(   If i set border.setTransparency(0) or -1
object is transparent but still visible....
Please help (sorry for my english)

Thomas.

I do not know what exactly you mean, but you should try Object3D.setVisibility(false)...

Berunin

:) set.visibility(false) == colision off .. true?
Thanks but I've found a solution here, I have to turn off the effect of light on the subject
   border.setLighting(Object3D.LIGHTING_NO_LIGHTS);

ps:zdravim krajana :)

EgonOlsen

Set the object to invisible for rendering and to visible for collision detection. Doing it your way might work but it slows down rendering with no need.

Berunin

Thank you very much your solution occurred to me, I'll try it but my solution works well and no slowdown see it.