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

OnLateFixedUpdate() + PhysX #2494

Closed
GhettoScouser opened this issue Apr 26, 2024 · 2 comments
Closed

OnLateFixedUpdate() + PhysX #2494

GhettoScouser opened this issue Apr 26, 2024 · 2 comments
Milestone

Comments

@GhettoScouser
Copy link

Issue description:
Accessing rigidbody inside OnLateFixedUpdate() causes PhysX errors

Error
[ 00:23:19.776 ]: [Error] PhysX Error! Code: 8. PxRigidDynamic::setGlobalPose() not allowed while simulation is running. Call will be ignored. Source: F:\FlaxEngineDotnet\Cache\Intermediate\Deps\PhysX\physx\source\physx\src\NpRigidDynamic.cpp : 97. [ 00:23:19.776 ]: [Error] PhysX Error! Code: 8. PxRigidActor::getWorldBounds() not allowed while simulation is running (except during PxScene::collide()). Source: F:\FlaxEngineDotnet\Cache\Intermediate\Deps\PhysX\physx\source\physx\src\NpRigidActorTemplate.h : 301

Flax version:
Master Branch 26/04/24

@mafiesto4 mafiesto4 added this to the 1.9 milestone Apr 26, 2024
@mafiesto4
Copy link
Member

mafiesto4 commented Apr 26, 2024

We will need to sync and wait for PhysX results before calling Late Update but keep it optimized if possible to waste as late as possible for multi-threaded simulation.

@mafiesto4
Copy link
Member

Fixed in 4414398.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants