www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Berunin on January 12, 2013, 04:36:20 pm

Title: Invisible collision border
Post by: Berunin on January 12, 2013, 04:36:20 pm
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)
Title: Re: Invisible collision border
Post by: Thomas. on January 12, 2013, 05:17:54 pm
I do not know what exactly you mean, but you should try Object3D.setVisibility(false)...
Title: Re: Invisible collision border
Post by: Berunin on January 12, 2013, 05:34:20 pm
:) 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 :)
Title: Re: Invisible collision border
Post by: EgonOlsen on January 12, 2013, 05:48:35 pm
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.
Title: Re: Invisible collision border
Post by: Berunin on January 12, 2013, 06:38:15 pm
Thank you very much your solution occurred to me, I'll try it but my solution works well and no slowdown see it.