@ignifx/physics 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3303,7 +3303,7 @@ var PhysicsRuntime = class {
3303
3303
  const rigidbody = entity.getComponent(Rigidbody);
3304
3304
  if (entity.parent !== null && !this.#warnedChildren.has(entity)) {
3305
3305
  this.#warnedChildren.add(entity);
3306
- this.#ctx.log.warn(`${PhysicsErrorCode.bodyOnChildEntity}: {entity} carries a physics body but is not a root entity; Havok writes its local pose.`, entity.name);
3306
+ this.#ctx.log.warn(`${PhysicsErrorCode.bodyOnChildEntity}: ${JSON.stringify(entity.name)} carries a physics body but is not a root entity; Havok writes its local pose.`);
3307
3307
  }
3308
3308
  const record = this.#build(entity, rigidbody, colliders);
3309
3309
  this.#records.push(record);
@@ -3575,7 +3575,7 @@ var PhysicsRuntime = class {
3575
3575
  if (version === record.staticVersion || record.reportedMove) return;
3576
3576
  record.staticVersion = version;
3577
3577
  record.reportedMove = true;
3578
- this.#ctx.log.warn(`${PhysicsErrorCode.movedStaticBody}: {entity} has colliders but no Rigidbody, and it moved after its static body was placed.`, record.entity.name);
3578
+ this.#ctx.log.warn(`${PhysicsErrorCode.movedStaticBody}: ${JSON.stringify(record.entity.name)} has colliders but no Rigidbody, and it moved after its static body was placed.`);
3579
3579
  }
3580
3580
  /**
3581
3581
  * Reads every controller's resolved position into the entity transform and probes its support.