drawcall / Proton

Javascript particle animation library
https://drawcall.github.io/Proton/
MIT License
2.41k stars 275 forks source link

lineRect bug #59

Open SeminYun opened 5 years ago

SeminYun commented 5 years ago

if lineRect use 'getSymmetric' , and then sometimes particle move following line.

it is happened direction changed if particle do not go outside of line checking(this.getDistance(p.x, p.y) <= radius) when next frame

and then particle is moved following on line

how do check changed direction

i think direction is changed , there is one more checking about it's changed

SeminYun commented 5 years ago

image

When I set LineZone upper particles, i got wrong result ..