playMaker

Author Topic: RayCast HitPoint [SOLVED]  (Read 2517 times)

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
RayCast HitPoint [SOLVED]
« on: May 26, 2014, 12:56:27 PM »
Hi.
I´m trying to move continuosly a sphere to a vector position given by the "Hit Position" of Ray Cast action. I´m using several ways like iTween move to ,move to, set position, set property transform...
But once the sphere get that postion reaches the object owner of the ray cast.

 How can I do to keep the sphere at the vector pos. ?

THX
« Last Edit: May 26, 2014, 08:34:29 PM by Alex Chouls »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: RayCast HitPoint
« Reply #1 on: May 26, 2014, 06:18:09 PM »
I'm assuming that your sphere has a collider, so the raycast is hitting that position, the sphere moves up- and gets another hit on the sphere.

Set the sphere so it has no collider, or is on a layer that is ignored by the raycast.

If you've done that, it's something else- but I've seen that behavior before.  ;)

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Re: RayCast HitPoint
« Reply #2 on: May 26, 2014, 06:59:40 PM »
So good!

Thanks!