mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Co-authored-by: zhanling <zhanling@cocos.com>
This commit is contained in:
@@ -69,6 +69,7 @@ export class PhysXWorld extends PhysXInstance implements IPhysicsWorld {
|
||||
}
|
||||
|
||||
step (deltaTime: number, _timeSinceLastCalled?: number, _maxSubStep = 0): void {
|
||||
if (this.wrappedBodies.length === 0) return;
|
||||
this._simulate(deltaTime);
|
||||
if (!PX.MULTI_THREAD) {
|
||||
this._fetchResults();
|
||||
|
||||
Reference in New Issue
Block a user