Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

Understanding vector2 set in Libgdx

Let's suppose we're working in screen pixels, and our viewport is a 1920x1080 screen. (The same logic holds in other coordinate systems too, but the exact numbers may differ) ...
LudoProf's user avatar
  • 324
1 vote
Accepted

LibGDX websockets GWT html app cant find source to WebSocket class

Solution: I downgraded websocket gwt library version in html module to ...
Часть Пустоты's user avatar
1 vote

libgdx resize works fine, except on setWinowedMode

Ok, it was an oversight on my part. I had an old line of code lying around from back when I experimented, that updated the viewport with the old dimensions after ...
UncleBob's user avatar
  • 111
1 vote
Accepted

Modifying LibGDX vector2's seems to do nothing

Taking a look at the source code, we can see that: setLength scales the vector to the given length while preserving its angle. But if the vector was a zero vector, ...
DMGregory's user avatar
  • 135k
1 vote
Accepted

How to adjust parabolic trajectory to hit the same point with the same launch angle, but faster speed?

For a given gravity value and target point, there's a one-to-one relationship between launch speed and angle that will hit that point. Any other speed with the same angle will either fall short (if it'...
DMGregory's user avatar
  • 135k
1 vote

Focus scene2d UI actors programmatically in libGDX

I wanted to build something very similar but I didn't love the idea of manipulating the cursor like the other answer as it feels really hacky, though it might work. In my case, I was also looking to ...
myyk's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible