Jump to content

obj1 should NOT collide with obj2 but still trigger onBeginContact and collide with obj3


valueerror
 Share

Recommended Posts

is there a way to disable collisions for a certain object but still get the onBeginContact event when they collide? 

 

activating sensor is no option because i need the object to still collide with everything else..    using collision groups seems not to work either because if i configure obj1 to not collide with obj2 the onBeginContact event is not fired anymore.

 

 

for now i use a hacky workaround in the onPresolve Event to cancel the collsion response..  but i have the feeling that there is an easier way for that.

 

thx in advance :)

Link to comment
Share on other sites

  • 2 weeks later...

well.. the knot in my head didn't get lose yet..

it seems this is not possible since noone could answer this question.

so i let them collide as usual but in the on presolve event i check if bodyA or bodyB are the specific bodies that should collider with everything but with each other only "report" the collision event without the collision response and i csncel the complete collision there...

sounds to complicated for me to be true.. i still think i just overlooked the obvious thin here.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...