I’m trying to make something that puts buildings on the grid.
My knowledge of these subjects is too shallow at present.
I know it’s a big topic and I’m hoping someone can briefly walk me through some of the concepts.
For example, how do I generate such meshes and how do I get buildings to fit in them?
Which of jme’s already-made classes can I use, and recommendations for other libraries that aren’t in jme that I can use?
Others have completed literature that I can learn from
(The above was generated by a translator, so please point out any problems, and if you have any questions about my questions, please point out the problems as well.)
The linked video just seems to make a quad for the ground. Why would you need anything else? There may be information we are missing.
Quad + Geometry for the ground.
Lemur’s picking (CursorListener) can tell you exactly where on the quad was clicked. From there just turn it into a grid cell coordinate. That’s easy math but my mathd library also has a Grid class that can do it for you.
I suspect these answers will be unsatisfying because we are probably missing information.
My current understanding is that I need to make a grid for the ground, and then give the mouse access to the grid coordinates, so that the building can be placed on the grid.
The problem is in the 100 things I can’t see. If you want my help then you will have to put together a small but complete test case that illustrates the issue.
Either way, if you want to know where the things were clicked then MouseEventControl is totally useless.
Ok my problem I misread MouseEventControl as CursorEventControl, I wrote a few simple examples I have understood the usage and functionality of the code.
It has solved most of my problems so far thanks for the tips and help!