effekseer / EffekseerForCocos2d-x

MIT License
42 stars 18 forks source link

NANs while rendering trail #23

Closed dantonov closed 4 years ago

dantonov commented 4 years ago

Hello, i've found the following issue: https://gyazo.com/ca73622fa65e9825c802a74d93b28c29

It could be fixed if you add zero-checks in function: template void RenderSplines(const ::Effekseer_1_5::Mat44f& camera)

Like this: if (!axis.IsZero()) axis = axis.Normalize();

durswd commented 4 years ago

Thank you. I will fix in this weekend.

durswd commented 4 years ago

I fixed it on this branch. https://github.com/effekseer/EffekseerForCocos2d-x/tree/15x_nan