Author Topic: Collision modes  (Read 3361 times)

Offline brainmaster

  • byte
  • *
  • Posts: 8
  • Commit Thy Works Unto The Lord
    • View Profile
Collision modes
« on: April 22, 2007, 01:50:44 am »
Hello. I can get my collision checks to work when the source object mode is only ...SELF and the target is only ...OTHER. Why can't setting the mode to (...SELF&...OTHER) for the objects work?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Collision modes
« Reply #1 on: April 22, 2007, 11:28:45 am »
You have to OR the modes, i.e. do a Object3D.setCollisionMode(COLLISION_CHECK_OTHERS|COLLISION_CHECK_SELF);

Offline brainmaster

  • byte
  • *
  • Posts: 8
  • Commit Thy Works Unto The Lord
    • View Profile
Re: Collision modes
« Reply #2 on: April 22, 2007, 08:16:12 pm »
Opps, sorry. My careless mistake. Thanks.