Hi everyone,
I´m making my first steps with Box2D and I made my first basic games, but now I have a little problem, I´m trying to select an object with the mouse to drag & drop but I don´t know how to do it, I was looking the custom function for the 2.0 version but the "Query"method doesn´t exists at the b2World class in the 2.1 version, so now I don´t know how to make this query to the world to see if there´s a shape at the mouse position.
I was looking at the forum but I didn´t found anything, can anyone say me how to pick an object with the mouse, please? I suposse it´s not too difficult, but I can´t do it at the moment 🙄
Thanks and sorry for the newbie question 😢
I´m making my first steps with Box2D and I made my first basic games, but now I have a little problem, I´m trying to select an object with the mouse to drag & drop but I don´t know how to do it, I was looking the custom function for the 2.0 version but the "Query"method doesn´t exists at the b2World class in the 2.1 version, so now I don´t know how to make this query to the world to see if there´s a shape at the mouse position.
I was looking at the forum but I didn´t found anything, can anyone say me how to pick an object with the mouse, please? I suposse it´s not too difficult, but I can´t do it at the moment 🙄
Thanks and sorry for the newbie question 😢