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 ...
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 ...
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, ...
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'...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
libgdx × 2284java × 962
android × 437
box2d × 274
collision-detection × 105
2d × 98
opengl × 95
sprites × 90
textures × 81
scene2d × 81
camera × 70
rendering × 65
animation × 56
physics × 55
tilemap × 55
tiled × 43
input × 41
mathematics × 39
rotation × 39
movement × 37
fonts × 36
shaders × 35
tiles × 34
graphics × 33
android-studio × 33