Valmor Posted October 20, 2017 Share Posted October 20, 2017 Hi I am beginner in babylonJs and javascript. I´m doing this, but, I have a lot of questions about how to do certain things and if I´m on the right trackhttp://www.babylonjs-playground.com/#J28NFN#1 1) how can build a line from one object to another? 2) the ball need continue to top and moving on board. who i can do it? 3) who show line in moving clicked mouse and hide after PointerUp 4) who can i destroy a object if ball colide? I am studying the tutorials and I see that this tool is incredibly powerful. Thanks for any help Quote Link to comment Share on other sites More sharing options...
hunts Posted October 20, 2017 Share Posted October 20, 2017 Hy welcome to Babylonjs! There are different ways to achieve this, but i'll clarify what you need 1. https://babylonjsguide.github.io/intermediate/Parametric_Shapes 2. http://doc.babylonjs.com/overviews/using_the_physics_engine 3. http://doc.babylonjs.com/tutorials/raycasts 4. if(ball.intersectsMesh(paddle)){ball.dispose()} Valmor 1 Quote Link to comment Share on other sites More sharing options...
Valmor Posted October 20, 2017 Author Share Posted October 20, 2017 Sometimes it is difficult to know the best way and these tips that you gave me here help a lot to understand the possible options. Thanks for the great help. hunts 1 Quote Link to comment Share on other sites More sharing options...
hunts Posted October 20, 2017 Share Posted October 20, 2017 You welcome, remember to post in the forum if any issue occurs 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.