playMaker

Author Topic: Physics.OverlapSphere in Action Browser ... any suggestions?  (Read 2774 times)

gamesonytablet

  • Playmaker Newbie
  • *
  • Posts: 3
Physics.OverlapSphere in Action Browser ... any suggestions?
« on: September 05, 2012, 09:11:43 AM »
Hi, I've been using Playmaker to replace C# scripts, and I'm having trouble trying replacing code originally using Physics.OverlapSphere.

// I use OverlapSphere to quickly get a list of enemies within a certain radius
arrayList = Physics.OverlapSphere(this.transform.position, 3, layerMask);

Looking through the Action Reference in the Physics category, "Get Collision Info" is closest, but not enough.

Can someone tell if I'm missing something, or a clue on how to work around this?

LoneCipher

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Physics.OverlapSphere in Action Browser ... any suggestions?
« Reply #1 on: August 26, 2013, 06:48:36 PM »
Bump? Any new suggestions?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Physics.OverlapSphere in Action Browser ... any suggestions?
« Reply #2 on: September 10, 2013, 02:50:33 AM »
Hi,

 Here we go:

http://hutonggames.com/playmakerforum/index.php?board=19.0

 I made this new custom action to match your need, as I think using simply sphere cast would not give the same result.

 If you have trouble implementing this let me know.

 Bye,

 Jean