playMaker

Author Topic: Pick position on object [SOLVED]  (Read 2869 times)

white

  • Playmaker Newbie
  • *
  • Posts: 5
Pick position on object [SOLVED]
« on: November 30, 2011, 08:36:11 AM »
What is the simplest way to pick the position on an object ?
I have a lot of objets within the scene, and most of them have colliders. I'm rying to get the "click position" for my ground element, but the mouse pick operation keeps getting the position on the other objects -

Thank you !
« Last Edit: November 30, 2011, 10:31:55 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Pick position on object
« Reply #1 on: November 30, 2011, 04:08:07 PM »
Use Layer Mask to filter the layers that you pick against. E.g., create a Ground Layer and put pickable ground objects in that layer (using the Unity inspector). Then use that layer in your picking actions.

The Layer Mask GUI in Playmaker is an array, so enter the number of layers you want to use then select them.

white

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Pick position on object
« Reply #2 on: November 30, 2011, 08:45:03 PM »
Great reply, thank you very much.