So i'm creating an interactive shadow. Currently its a slightly oblong sprite with an off-center origin that rotates itself towards the closest light source. My question is how I could get it to rotate to the correct medium point/middle point if two lights are close and would make equal pulls on the shadow sprites angle. so I dont have odd outcomes as such
Develop games in your browser. Powerful, performant & highly capable.
bump
I would suggest the line of sight behavior for when you have multiple picked lights, and anglediff(angle1,angle2) of those two angles.
Heres another method that averages the xys of picked objects.
https://www.dropbox.com/s/frr1bta9z8u23 ... .capx?dl=0
It's not great for choosing between larger angles.
Maybe get R0J0hound for averaging poly's of angles.