playMaker

Author Topic: collider bool  (Read 1412 times)

Sjones

  • Full Member
  • ***
  • Posts: 201
    • View Profile
collider bool
« on: September 16, 2012, 09:30:34 AM »
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, 09:32:40 AM by Sjones »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: collider bool
« Reply #1 on: September 17, 2012, 12: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