Whereās his head?!? If you look at my code, I had to scale the Ninja down significantly, and am worried that this is somehow throwing off default calculations. So, given his scaling, how can I center him on screen? Changing the height and width of the window has not helped me yet.
In reality though, my spare time is extremely limited and I am just trying to get a very simple demo/proof-of-concept working, and centering the ninja on screen is literally the last tweak I need to make. In a few weeks I will have some major downtime and will be able to do a proper deep dive into the docs, but it was my hope that Iād be able to just finish this PoC, and the answer to this question is the key to that.
Inside of simpleAppInit I added camera.setViewPort(0.0, 0.0, 0.0, 0.0); but that is not working. It appears to me that I need to raise the camera up, but there are so many methods on the camera object, I feel totally overwhelmed.
Iām sure this is just a simple 1- or 2-liner. Any chance you could help me out this one last time, or at least point me to the right javadoc? Once I get this working I will absolutely read up on 3D basics as well as do that deep dive on jME docs. Thanks for any-and-all-help here!
I wonder if there is even a method to set the location. Perhaps it is called setLocation()?
I imagine someone who is in so much of a hurry that his eyes are darting all over the page and only reading one character at a time. The advice would be āslow down to go fasterā.
edit: also, interesting tip⦠if you let the fly cam stay enabled you can actually āflyā the camera around until you find a spot you like. By default there are debug keys like ācā that will dump the current camera location.
Ok⦠letās talk.
We also have very limited spare time. Yet weāve spend a fair amount of this time making an engine, with javadoc, and a very thorough documentation with very simple tutorials so that people wouldnāt feel overwhelmed.
Youāve asked like 20 questions for the last few day, every single one of which are answered in the documentation or the tutorals, yet⦠we still spend some our limited spare time answering and in every answer pointing you toward the documentation.
Now, when you say āI have very little spare time to read the docā, I read āIād rather waste your time than mineā. You waste the time we spend writing the docs, and you waste the time we spend answering you, so basically⦠you waste our time twice.
So tbh, even if I try hard, the only answer that comes to my mind is āfuck offā.
So⦠READ THE FUCKING DOC.
@hotmeatballsoup Iām just curious. Do you even know Java?
When I started back in the day. I had some Java experience. Not much, but enough. I went through all the tutorials and then I pretty much understood how things work.
Usually try to fix your things yourself. When you think you tried every possible way you know of, then it might be time to post a question on the forums.
EDIT: ctrl + space is also a very good way to explore how JME works.
@pspeed: Yes you are right, the IDEās auto-complete helps me in that respect and I mostly take the right one Just want to give a pointer where OP can move that avatar around.
@hotmeatballsoup do yourself a favor. Read the tutorials ⦠ALL OF THEM! If you donāt understand a tutorial then you are not ready to write code on that topic. At that point, get some knowledge about that specific topic ⦠then re-read the tutorial. Following this process will get you far VERY quickly. Now, you are trying to create a video game ⦠basically one of the hardest things to do if you donāt have the basic math skills and basic understanding required. That said, when you say you donāt have time to read the tutorials I say to you ⦠GO PLAY CANDY CRUSH because video game creation is CLEARLY not for you!