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

Connect lightsource with object in Libgdx

$
0
0

I want to make an minimalistic highway chase game in LibGDX, but I have a question. Can I attach a source light to an object so gravity will affect the source light, by pulling it down?

One solution could be adding a listener to the object movement and move the light according to “connected” peer. But it seems not so natural.

Any thoughts or ideas?
Thank you.


Viewing all articles
Browse latest Browse all 434

Trending Articles