playMaker

Author Topic: collider bool  (Read 2660 times)

Sjones

  • Full Member
  • ***
  • Posts: 203
collider bool
« on: September 16, 2012, 12:30:34 PM »
I am not sure if this needs to be a new action however I can not think of a way to do this so.

I would like to detect if a collider (physics component) is intersecting another collider and return a bool (or to make it more helpful to other people a send event.)

Thanks
« Last Edit: September 16, 2012, 12:32:40 PM by Sjones »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: collider bool
« Reply #1 on: September 17, 2012, 03:41:12 AM »
hi,

 you'll have to implement collision enter and exit and maintain a flag that indeed it collides, i am not aware of any other method,

but be carefull, Do not check for stay, this is very bad for performacnes, so i encourage to make the effort to check for collision enter and exit, it is way better.

bye,

jean