masterdon Posted May 4, 2017 Share Posted May 4, 2017 Hi Team, I am working on a project to create 2D editor for house modelling. So far, i have created a demo showing a tube as rectangle. http://www.babylonjs-playground.com/#7EJ4CM#2 My goal is to use the rectangle as object like walls where certain objects like doors,windows etc can be dragged and dropped. Everything in 2D. So i wanted to know: 1) how to change circular tube to square shaped ones. so that the edges gives look and fill of wall. 2) how to allow users to resize rectangle by stretching edges/sides of rectangle. 3) option to drag and drop certain objects on rectangles edges. Quote Link to comment Share on other sites More sharing options...
hunts Posted May 4, 2017 Share Posted May 4, 2017 For movement:http://www.babylonjs-playground.com/#WK7SUV For scaling:http://www.babylonjs-playground.com/#WK7SUV#1 Quote Link to comment Share on other sites More sharing options...
masterdon Posted May 4, 2017 Author Share Posted May 4, 2017 Thanks hunts. Can I restrict dragging of objects only on edges. My objects will be represented by solid lines. 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.