0

Okay, so I am not sure what point I updated from, but I grabbed the newest nightly tried to recompile my code to find

callback.getRayFromWorld().setValue(rayFrom.x, rayFrom.y, rayFrom.z);
callback.getRayToWorld().setValue(rayTo.x, rayTo.y, rayTo.z);

was broken, so I tried

callback.getRayFromWorld(rayFrom);
callback.getRayToWorld(rayTo);

to no avail. checking the libgdx github I couldn't understand what had changed. Any ideas?

CloudTwoNJ
  • 65
  • 2
  • 8

1 Answers1

0

getRayFromWorld will set the specified vector to the rayFrom (it will get the vector). You'll want to use setRayFromWorld instead:

callback.setRayFromWorld(rayFrom);
callback.setRayToWorld(rayTo);

For more info on this change, see: https://github.com/libgdx/libgdx/pull/2176#issuecomment-50459926

Xoppa
  • 7,983
  • 1
  • 23
  • 34