mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
[fix] when physics2d-builtin shape sets group should check collider then addShape (#13790)
* [fix] when physics2d-builtin shape sets group should check collider then addShape #13361 * tweaks
This commit is contained in:
@@ -77,7 +77,9 @@ export class BuiltinPhysicsWorld implements IPhysicsWorld {
|
||||
|
||||
updateShapeGroup (shape: BuiltinShape2D) {
|
||||
this.removeShape(shape);
|
||||
this.addShape(shape);
|
||||
if (shape.collider.enabledInHierarchy) {
|
||||
this.addShape(shape);
|
||||
}
|
||||
}
|
||||
|
||||
step (deltaTime: number, velocityIterations = 10, positionIterations = 10) {
|
||||
|
||||
Reference in New Issue
Block a user