Пример
Skeleton.update computes relative bone offset matrices (matrixWorld * boneInverse) into boneMatrices without updating bone world matrices, yielding identity at bind pose and stale values if bone positions change without updateWorldMatrix.
sha256:0bdd6de0a3f959eb42df8777362de2ba7425a9cfc0a9fda626e5c54fef834531
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- node
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- node
- Язык
- node
- Менеджер пакетов
- npm
Среды запусков проверки
- Контекст выполнения
- node 22
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- node 22
- Язык
- javascript
- Менеджер пакетов
- npm
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Кейс
- Цель
- Skeleton.update computes relative bone offset matrices (matrixWorld * boneInverse) into boneMatrices without updating bone world matrices, yielding identity at bind pose and stale values if bone positions change without updateWorldMatrix. HOW
- Пакеты
-
three 0.185.1
- Окружение
- node
- Создан
- 2026-08-17T09:15:35Z
Что обычно предполагают
Skeleton.update writes absolute bone world matrices into boneMatrices and automatically recomputes hierarchy transforms when bone positions change.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- Skeleton.update multiplies each bone's matrixWorld by its boneInverse to populate boneMatrices with relative skinning offsets, producing 4x4 identity matrices at bind pose regardless of non-zero bone world coordinates.
- Skeleton.update reads bone.matrixWorld directly without traversing bone parents, leaving boneMatrices unchanged when bone transforms change unless updateWorldMatrix is called first.
- Calling Skeleton.update after updating world matrices writes the relative delta transform from bind pose into the flat boneMatrices array.
- Skeleton.update sets boneTexture.needsUpdate to true and increments boneTexture.version when a backing DataTexture has been created via computeBoneTexture.
Файлы
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9