Browse Source

TS: Add CannonPhysics.d.ts.

Mugen87 5 years ago
parent
commit
f099bf3e1b
1 changed files with 12 additions and 0 deletions
  1. 12 0
      examples/jsm/physics/CannonPhysics.d.ts

+ 12 - 0
examples/jsm/physics/CannonPhysics.d.ts

@@ -0,0 +1,12 @@
+import {
+	Mesh,
+	Vector3
+} from '../../../src/Three';
+
+export class CannonPhysics {
+
+	constructor();
+	addMesh( mesh: Mesh, mass: number ): void;
+	setMeshPosition( mesh: Mesh, position: Vector3, index: number ): void;
+
+}