mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 11:31:59 +08:00
9566f88ba5
Even if the rateOverDistance is 0, it will still get the world position and calculate the distance, which is waste. To improve performance, only if the rateOverDistance is above 0, it would get the world position and calculate the distance