ASSa Posted January 2, 2018 Share Posted January 2, 2018 Hi, I'm trying to draw an angle on XOY plane but it seems something is wrong. Here's a sample to reproduce the issue: http://www.babylonjs-playground.com/#RQ5WYS. I uses the following points to create the tube, but the result is obviously not my expectation. var myPath = [ new BABYLON.Vector3(0, 0, 0), new BABYLON.Vector3(10, 0, 0), new BABYLON.Vector3(0, 10, 0) ]; But when I change the 3rd point from (0,10,0) to (0,0,10), i.e. to draw the angle on XOZ plane, the graph looks ok. In addition, the angle also appears if changing the 3rd point from (0,10,0) to (0.0001, 10, 0), but the tube line tapers along x-axis. Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 2, 2018 Share Posted January 2, 2018 Pinging @jerome Quote Link to comment Share on other sites More sharing options...
jerome Posted January 2, 2018 Share Posted January 2, 2018 The internal path of the tube builds a Path3D object http://doc.babylonjs.com/how_to/how_to_use_path3d When built with not enough points and at some limits for the normal/binormal computations (like 90° angles) it can leads to some weird expected results. Just add more points to your path (more than only 3) and it should work. 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.