fix: close California play and asset acceptance gaps
This commit is contained in:
@@ -64,6 +64,14 @@ describe("procedural actor assets", () => {
|
||||
assert.ok(size.y <= DOG_METRICS.height + 0.08, `height ${size.y}`);
|
||||
assert.ok(size.z >= DOG_METRICS.length - 0.1, `length ${size.z}`);
|
||||
assert.equal(rig.root.userData.actorType, "anonymous-dog");
|
||||
for (const side of ["left", "right"] as const) {
|
||||
const eye = rig.root.getObjectByName(`dog.eye.${side}`);
|
||||
const catchlight = rig.root.getObjectByName(`dog.eye-catchlight.${side}`);
|
||||
assert.ok(eye instanceof THREE.Mesh);
|
||||
assert.ok(catchlight instanceof THREE.Mesh);
|
||||
assert.ok(eye.getWorldPosition(new THREE.Vector3()).z < 0, `${side} eye faces -Z`);
|
||||
assert.ok(catchlight.getWorldPosition(new THREE.Vector3()).z < eye.getWorldPosition(new THREE.Vector3()).z);
|
||||
}
|
||||
|
||||
const clone = cloneDog(rig);
|
||||
assertSharedResources(rig.root, clone.root);
|
||||
|
||||
Reference in New Issue
Block a user