Convergence Posted September 19, 2015 Share Posted September 19, 2015 Please observe the following demo: http://www.babylonjs-playground.com/#2UKFN#2 Two ground planes, both having a Ray supposedly intersect with them. Only the ground intersecting the ray at Vector3.Zero() returns true on intersect(). Please advice? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 19, 2015 Share Posted September 19, 2015 It seems the ray origin point is not a world coordinate, but a local coordinate...But i'm not sure about it :/ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 20, 2015 Share Posted September 20, 2015 Temechon is right. mesh.intersects needs local coordinate for the ray:http://www.babylonjs-playground.com/#2UKFN#4 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.