Author Topic: Invisible collision border  (Read 2250 times)

Offline Berunin

  • byte
  • *
  • Posts: 3
    • View Profile
Invisible collision border
« 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)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Invisible collision border
« Reply #1 on: January 12, 2013, 05:17:54 pm »
I do not know what exactly you mean, but you should try Object3D.setVisibility(false)...

Offline Berunin

  • byte
  • *
  • Posts: 3
    • View Profile
Re: Invisible collision border
« Reply #2 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 :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Invisible collision border
« Reply #3 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.

Offline Berunin

  • byte
  • *
  • Posts: 3
    • View Profile
Re: Invisible collision border
« Reply #4 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.