Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Crash Related to CustomEmitterShape
#2
(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,
Reply


Messages In This Thread
Crash Related to CustomEmitterShape - by nonnamed - 25-05-2025, 05:01 AM
RE: Crash Related to CustomEmitterShape - by josemendez - 26-05-2025, 03:46 PM