It is a issue, the dragbone attached node can not emit an position change event, so the rigidbody can not be update. you need update rigidbody manual in current version.
@ccclass('NewComponent')
export class NewComponent extends Component {
// [1]
// dummy = '';
// [2]
// @property
// serializableDummy = 0;
@property(RigidBody2D)
eb: RigidBody2D = null!;
start() {
PhysicsSystem2D.instance.enable = true;
PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb |
EPhysics2DDrawFlags.Pair |
EPhysics2DDrawFlags.CenterOfMass |
EPhysics2DDrawFlags.Joint |
EPhysics2DDrawFlags.Shape;
}
update (deltaTime: number) {
// @ts-ignore
this.eb._body.syncPositionToPhysics(true)
}
}