From 7988fc91a58b65bf6e86c11f5d71a26b2dda450f Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 19 Dec 2022 15:05:35 +0800 Subject: [PATCH] fix example project --- example/lib/main.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 81e85392..23a02b31 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,7 @@ import 'dart:math'; - import 'package:flutter/material.dart'; +import 'package:vector_math/vector_math.dart' as v; + import 'package:polyvox_filament/filament_controller.dart'; import 'package:polyvox_filament/filament_gesture_detector.dart'; import 'package:polyvox_filament/filament_widget.dart'; @@ -132,11 +133,11 @@ class _MyAppState extends State { "Cube.001", 2, 4, - Vec3(), - Vec3(), + v.Vector3.zero(), + v.Vector3.zero(), // Vec3(x: 1, y: 1, z: 1), - Quaternion(x: 0, y: 0, z: 0, w: 1), - Quaternion(x: 1, y: 1, z: 1, w: 1)) + v.Quaternion(0, 0, 0, 1), + v.Quaternion(1, 1, 1, 1)) // Quaternion(x: 1, y: 1, z: 1, w: 1)) .build();