add setBoneTransform method
This commit is contained in:
1 parent
daf319bf2c
commit
f5d5a36f22
13 files changed
+182
-70
No files matched your search
@@ -55,6 +55,17 @@ class _AssetSubmenuState extends State<AssetSubmenu> {
|
||||
.transformToUnitCube(ExampleWidgetState.shapes!);
|
||||
},
|
||||
child: const Text('Transform to unit cube')),
|
||||
MenuItemButton(
|
||||
onPressed: ExampleWidgetState.shapes == null
|
||||
? null
|
||||
: () async {
|
||||
await widget.controller.setBoneTransform(
|
||||
ExampleWidgetState.shapes!,
|
||||
"Cylinder",
|
||||
0,
|
||||
Matrix4.rotationX(pi / 2));
|
||||
},
|
||||
child: const Text('Set bone tranform to identity for Cylinder')),
|
||||
MenuItemButton(
|
||||
onPressed: () async {
|
||||
var names = await widget.controller
|
||||
|
||||
Reference in new issue
Block a user