Hot answers tagged

2 votes
Accepted

How to render picture-in-picture effect with libGDX camera

You can render the drones view to a FrameBuffer, and then draw that FrameBuffer onto your main screen. This is often referred to ...
bornander's user avatar
  • 4,461
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
  • 132k
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
  • 132k
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