cannon_physics 0.0.1 cannon_physics: ^0.0.1 copied to clipboard
A Flutter plugin designed for three_dart and three_dart_jsm to allow users to add a simple physics engine to their 3D project.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cannon_physics
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cannon_physics: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cannon_physics/cannon_physics.dart';