26-05-2025, 03:46 PM
(This post was last modified: 26-05-2025, 03:47 PM by josemendez.)
(25-05-2025, 05:01 AM)nonnamed Wrote: I would like to report a crash issue that I discovered with a specific setting.
If this has already been reported or explained elsewhere, I apologize in advance.
When creating a CustomEmitterShape, if an EmitPoint added to the distribution has a direction of Vector2.zero, a crash occurs in the Compute BackEnd.
However, it runs correctly in the Burst BackEnd.
Please note that I am not confident in English, so I used ChatGPT to help write this message.
Hi!
Thanks for reporting this! the direction of emission points is assumed to be a normalized vector, ie. have a length of 1. Creating a custom shape and passing a vector of zero length might lead to division by zero issues down the pipeline, will add an explicit check for this case to improve robustness.
kind regards,