libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
257 stars 82 forks source link

Added getters and setters for body offsets in PositionalLight #116

Closed thechubbypanda closed 4 years ago

thechubbypanda commented 4 years ago

Allows for changing which way a light points, for example, while attached to a body in case the body needs to pointing another way. Current alternative is to extend the light class in question which is, last I checked, not good practice.

thechubbypanda commented 4 years ago

Note, it may be cleaner to just make the fields public rather than using getters and setters,