Graphics

 View Only
  • 1.  Incorrect Raycasting (SDK)

    Posted 10-11-2013 02:42
    Hi Everyone,

    I was wondering if anyone has had this problem. I am doing a raycast on a scene to get an object back using the scene.GetObjectByRaycast(.....) call.

    The first time it hits the object. Then my logic using an xpAnimationController to move the object's position. Then I call a raycast in its new position and it doesn't hit the object. Instead when I do a raycast at the old position it still hits. As if the object has never moved.


  • 2.  RE: Incorrect Raycasting (SDK)

    Posted 10-18-2013 20:05
    Steven, I sent you a message with a sample.. Let me know if it works ok for you or if you need more assistance.

    #XPression


  • 3.  RE: Incorrect Raycasting (SDK)

    Posted 10-20-2013 22:28
    Sorry I got this working it was my own fault. I was performing the raycast on a duplicate of the scene. Thus the values never changed.

    #XPression