finalize bone transform animation

This commit is contained in:
Nick Fisher
2022-12-17 16:31:20 +08:00
parent de9797a20e
commit b1832c237f
17 changed files with 581 additions and 476 deletions

View File

@@ -208,12 +208,13 @@ class _MyAppState extends State<MyApp> {
await _filamentController.clearLights();
break;
case 32:
await _filamentController.setBoneTransform(
_cube!,
"Bone.001",
"Cube.001",
BoneTransform([Vec3(x: 0, y: 0.0, z: 0.0)],
[Quaternion(x: 1, y: 1, z: 1, w: 1)]));
// await _filamentController.setBoneTransform(
// _cube!,
// "Bone.001",
// "Cube.001",
// BoneTransform([Vec3(x: 0, y: 0.0, z: 0.0)],
// [Quaternion(x: 1, y: 1, z: 1, w: 1)]));
break;
}
}