BGE Sensor Touch disappear?

I have not been using BGE for a while and I always updated Blender, now it is Blender 2.69. I just realized the BGE Sensor Touch is no longer available. Is it replaced by something else? What if I want to detect if object is touching another object with Material X, for example?

Thanks!

I believe you are looking for a near or collision sensor. collision is the most similar, you just need to hit “M/P” for materials. “M/P” stands for material or property. property will look for any object with a certain property. Near is pretty much the same, it’s just anything within a certain radius will trigger the true/false pulse, whichever you set it to.
Hope this helps

Ok thanks for that, wonder why it is not mentioned anywhere. So “touch” sensor was really omitted.

It was exactly the same as the collision sensor, so they removed one of them. Touch sensor was removed probably because collision sounds better!

It’s unfortunate, but it was removed. Collision does the same thing, however is slightly less convenient. I can’t say why this was skipped by the developer documentation.

That’s why the touch sensor was removed (it could do the touch sensor’s job and more), it was a redundant brick and I think the commit included code that will convert all your touch sensors to collision sensors.

Also, pressing the little M/P button shouldn’t be inconvenient, it takes all of one second to push it so you can type in the material name.

Agreed with Ace. Collision and Touch were present in Blender for years (at least since 2.49 to 2.6x, or somewhere thereabouts). There’s no reason to have redundant code, as it just makes things harder to code and work with for developers, so it was removed.

The devs simply forgot to put that they were getting rid of the Touch sensor in the 2.69 release notes. I’d filed a bug report at the time and they then made the correction.