Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Is there a way to rotate an Ellipse in libGDX for collision detection purposes?

$
0
0

I’m trying to avoid having multiple overlapping Circles for a UFO-shaped sprite.

Two Ellipse objects will perfectly cover the shape of my UFO, but I want to tilt/rotate the UFO when flying left and right, while still maintaining collision areas that match the locations of the graphics.

The Ellipse reference page doesn’t have anything listed for rotation options, just wondering if anyone has ever tried to do this before (and succeeded).


Viewing all articles
Browse latest Browse all 434

Trending Articles