playMaker

Author Topic: Picking objects that have been raycast placed [ SOLVED ]  (Read 2317 times)

Harford

  • Playmaker Newbie
  • *
  • Posts: 6
Picking objects that have been raycast placed [ SOLVED ]
« on: March 02, 2012, 07:41:21 AM »
I have put objects down based off a raycast. Eg - placing objects in certain places
I'd like to then use mouse pick to pick those objects and store that object in 'pickedObject' so I can change elements of it like scale, rotation.

Whenever I get to the picking phase, it will not pick the object that has been raycast placed. However if I try to do the same pick on already placed objects ( like cubes ) , it works fine.

Thanks
« Last Edit: March 02, 2012, 08:28:05 AM by Harford »

playmakerNewb

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Picking objects that have been raycast placed
« Reply #1 on: March 02, 2012, 08:15:07 AM »
Can you post some code?  How are you determining if you have hit an object that has been placed in the scene?  Those objects that you're putting down based on a raycast.  Do they have colliders on them?

Harford

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Picking objects that have been raycast placed
« Reply #2 on: March 02, 2012, 08:27:26 AM »
Thanks!, That's great help.
You're right it was that I did not have a collider on them. Now it works fine.