浏览代码

TS: Add CannonPhysics.d.ts.

Mugen87 5 年之前
父节点
当前提交
f099bf3e1b
共有 1 个文件被更改,包括 12 次插入0 次删除
  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;
+
+}