@ignifx/physics-2d 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 +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/skills/physics-2d/SKILL.md +2 -2
package/dist/index.js
CHANGED
|
@@ -2612,7 +2612,7 @@ var Physics2DRuntime = class {
|
|
|
2612
2612
|
*/
|
|
2613
2613
|
#clampLayer(layer, subject) {
|
|
2614
2614
|
if (layer < 16) return layer;
|
|
2615
|
-
this.#ctx.log.warn(`${Physics2DErrorCode.layerOutOfRange}: {
|
|
2615
|
+
this.#ctx.log.warn(`${Physics2DErrorCode.layerOutOfRange}: ${JSON.stringify(subject)} is on layer ${String(layer)}, which is outside the sixteen layers Rapier 2D can filter by.`);
|
|
2616
2616
|
return 0;
|
|
2617
2617
|
}
|
|
2618
2618
|
/** Marks every entity whose layer changed since its body was built. */
|
|
@@ -2722,7 +2722,7 @@ var Physics2DRuntime = class {
|
|
|
2722
2722
|
if (colliders.length === 0 && controller === null) return;
|
|
2723
2723
|
if (entity.parent !== null && !this.#warnedChildren.has(entity)) {
|
|
2724
2724
|
this.#warnedChildren.add(entity);
|
|
2725
|
-
this.#ctx.log.warn(`${Physics2DErrorCode.bodyOnChildEntity}: {entity} carries a 2D physics body but is not a root entity; Rapier writes its world pose
|
|
2725
|
+
this.#ctx.log.warn(`${Physics2DErrorCode.bodyOnChildEntity}: ${JSON.stringify(entity.name)} carries a 2D physics body but is not a root entity; Rapier writes its world pose.`);
|
|
2726
2726
|
}
|
|
2727
2727
|
const record = this.#build(entity, entity.getComponent(Rigidbody2D), controller, colliders);
|
|
2728
2728
|
if (record === null) return;
|
|
@@ -2845,7 +2845,7 @@ var Physics2DRuntime = class {
|
|
|
2845
2845
|
events: owner?.isTrigger === true
|
|
2846
2846
|
});
|
|
2847
2847
|
if (collider === null) {
|
|
2848
|
-
this.#ctx.log.warn(`${Physics2DErrorCode.colliderGeometryInvalid}: {entity} has a 2D collider whose geometry Rapier cannot build a shape from
|
|
2848
|
+
this.#ctx.log.warn(`${Physics2DErrorCode.colliderGeometryInvalid}: ${JSON.stringify(record.entity.name)} has a 2D collider whose geometry Rapier cannot build a shape from.`);
|
|
2849
2849
|
return null;
|
|
2850
2850
|
}
|
|
2851
2851
|
const handle = colliderHandle(collider);
|
|
@@ -3148,7 +3148,7 @@ var Physics2DRuntime = class {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
record.staticVersion = version;
|
|
3150
3150
|
record.reportedMove = true;
|
|
3151
|
-
this.#ctx.log.warn(`${Physics2DErrorCode.movedStaticBody}: {entity} has 2D colliders but no Rigidbody2D, and it moved after its body was placed
|
|
3151
|
+
this.#ctx.log.warn(`${Physics2DErrorCode.movedStaticBody}: ${JSON.stringify(record.entity.name)} has 2D colliders but no Rigidbody2D, and it moved after its body was placed.`);
|
|
3152
3152
|
}
|
|
3153
3153
|
/**
|
|
3154
3154
|
* Writes a 2D pose onto an entity without disturbing its Z.
|