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

Destroy physics entity on physics-releated script function #1170

Closed
yangfengzzz opened this issue Nov 9, 2022 · 1 comment
Closed

Destroy physics entity on physics-releated script function #1170

yangfengzzz opened this issue Nov 9, 2022 · 1 comment
Assignees
Labels
bug Something isn't working high priority High priority issue physics Engine's physical system
Milestone

Comments

@yangfengzzz
Copy link
Member

When destroy physics entity on physics-releated script function, It is prevented by PhysX because it is still on update. It will throw error:
invalid operation : PxScene::simulate: Simulation is still processing last simulate call, you should call fetchResults()!

Demo:
physx-collision-detection.ts.zip

@yangfengzzz yangfengzzz added bug Something isn't working physics Engine's physical system medium priority Medium priority issue labels Nov 9, 2022
@yangfengzzz yangfengzzz added this to the 1.0 milestone Nov 9, 2022
@GuoLei1990 GuoLei1990 added high priority High priority issue and removed medium priority Medium priority issue labels Nov 14, 2022
@GuoLei1990 GuoLei1990 modified the milestones: 1.0, 1.1 May 18, 2023
@GuoLei1990 GuoLei1990 modified the milestones: 1.1, 1.2 Oct 7, 2023
@GuoLei1990 GuoLei1990 assigned luzhuang and unassigned GuoLei1990 and yangfengzzz Oct 7, 2023
@luzhuang
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority High priority issue physics Engine's physical system
Projects
No open projects
Development

No branches or pull requests

3 participants