msny Posted April 16, 2017 Share Posted April 16, 2017 I was trying to get my ray to hit whatever I'm looking at, but instead the ray is casting itself diagonally and there's a line out from that point that I have to bisect to get to hit. Wondering how to fix this so my ray is flat instead of diagonal as in this example http://www.babylonjs-playground.com/#KNE0O#26 Quote Link to comment Share on other sites More sharing options...
msny Posted April 16, 2017 Author Share Posted April 16, 2017 Found it it was due to the third parameter in the attachToMesh function, to get it looking straight just set the vector to 1,1,1 http://www.babylonjs-playground.com/#KNE0O#27 Quote Link to comment Share on other sites More sharing options...
adam Posted April 16, 2017 Share Posted April 16, 2017 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.