Skip to content

Commit c58f23e

Browse files
committed
v1.2.0 -- all done ready for merge
1 parent 7219f92 commit c58f23e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flutter 3D Controller
22

3-
A Flutter package for rendering interactive 3D models in different formats(glb, gltf, fbx, obj), with ability to control animations, textures, and camera.
3+
A Flutter package for rendering interactive 3D models in different formats(glb, gltf, fbx, obj), with ability to control animations, textures and camera.
44

55
## Features
66

@@ -44,35 +44,35 @@ A Flutter package for rendering interactive 3D models in different formats(glb,
4444
## Brief Example
4545

4646
```dart
47-
// create controller object to control 3D model.
47+
//Create controller object to control 3D model.
4848
Flutter3DController controller = Flutter3DController();
4949
50-
// It will play 3d model animation, you can use it to play or switch between animations.
50+
//It will play 3D model animation, you can use it to play or switch between animations.
5151
controller.playAnimation();
5252
53-
// If you pass specific animation name it will play that specific animation.
54-
// If you pass null and your model has at least 1 animation it will play first animation.
53+
//If you pass specific animation name it will play that specific animation.
54+
//If you pass null and your model has at least 1 animation it will play first animation.
5555
controller.playAnimation(animationName: chosenAnimation);
5656
57-
// It will pause the animation at current frame.
57+
//It will pause the animation at current frame.
5858
controller.pauseAnimation();
5959
60-
// It will play animation from first frame (from beginning).
60+
//It will reset and play animation from first frame (from beginning).
6161
controller.resetAnimation();
6262
63-
// It will return available animation list of 3D model.
63+
//It will return available animation list of 3D model.
6464
await controller.getAvailableAnimations();
6565
66-
// It will load desired texture of 3D model, you need to pass texture name.
66+
//It will load desired texture of 3D model, you need to pass texture name.
6767
controller.setTexture(textureName: chosenTexture);
6868
69-
// It will return available textures list of 3D model.
69+
//It will return available textures list of 3D model.
7070
await controller.getAvailableTextures();
7171
7272
//It will set your desired camera target.
7373
controller.setCameraTarget(0.3, 0.2, 0.4);
7474
75-
// It will reset the camera target to default.
75+
//It will reset the camera target to default.
7676
controller.resetCameraTarget();
7777
7878
//It will set your desired camera orbit.
@@ -84,11 +84,11 @@ controller.resetCameraOrbit();
8484
```
8585

8686
```dart
87-
// The 3D viewer widget
87+
//The 3D viewer widget
8888
Flutter3DViewer(
89-
controller: controller,
90-
src: 'assets/business_man.glb',
91-
)
89+
controller: controller,
90+
src: 'assets/business_man.glb',
91+
)
9292
```
9393

9494
## Installation

0 commit comments

Comments
 (0)