Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't not revert to origin position after simulate #299

Closed
hmkc opened this issue Apr 3, 2024 · 3 comments
Closed

Can't not revert to origin position after simulate #299

hmkc opened this issue Apr 3, 2024 · 3 comments
Assignees
Labels
bug Something isn't working need more info released

Comments

@hmkc
Copy link

hmkc commented Apr 3, 2024

In UIParticleRenderer.Simulate() , after move to scaled position, simulate, the particle system transform can not revert to origin position.
When isLocalSpace is true, scaledPos equals originWorldPosition.when execute move to scaled position, the psTransform's position is still the same, but its localPosition is changed.So psTransform can not revert to origin position.
In my project, it is avaliable to use SetLocalPositionAndRotation to revert to origin position.
image

@HotChocoTea
Copy link

oh, i met this question too! my device type is fold phone. sometimes the effect will far from origin pos

@mob-sakai mob-sakai self-assigned this Apr 11, 2024
@mob-sakai mob-sakai added the bug Something isn't working label Apr 11, 2024
@mob-sakai
Copy link
Owner

Thank you for your reporting!
I would like to know more about this issue.
Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

mob-sakai added a commit that referenced this issue May 24, 2024
…to floating-point precision issues

close #299, close #312
github-actions bot pushed a commit that referenced this issue May 24, 2024
## [4.6.7](v4.6.6...v4.6.7) (2024-05-24)

### Bug Fixes

* the ParticleSystem's localPosition drifts at certain scales due to floating-point precision issues ([e924eb4](e924eb4)), closes [#299](#299) [#312](#312)
Copy link

🎉 This issue has been resolved in version 4.6.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue May 24, 2024
…to floating-point precision issues

close #299, close #312
github-actions bot pushed a commit that referenced this issue May 24, 2024
## [4.6.7](v4.6.6...v4.6.7) (2024-05-24)

### Bug Fixes

* the ParticleSystem's localPosition drifts at certain scales due to floating-point precision issues ([e924eb4](e924eb4)), closes [#299](#299) [#312](#312)
mob-sakai added a commit that referenced this issue May 24, 2024
…to floating-point precision issues

close #299, close #312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info released
Projects
None yet
Development

No branches or pull requests

3 participants