cannon: add cone twist constraint

This commit is contained in:
Grzegorz Rozdzialik
2017-12-21 21:41:05 +01:00
parent f3e0c3d36f
commit 96d73c7256
+16
View File
@@ -1,6 +1,7 @@
// Type definitions for cannon 0.1
// Project: https://github.com/clark-stevenson/cannon.d.ts
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>
// Grzegorz Rozdzialik <https://github.com/Gelio>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -148,6 +149,8 @@ declare module CANNON {
constructor(bodyA: Body, bodyB: Body, options?: IConstraintOptions);
update(): void;
disable(): void;
enable(): void;
}
@@ -193,6 +196,19 @@ declare module CANNON {
constructor(bodyA: Body, bodyB: Body, options?:any);
}
export interface IConeTwistConstraintOptions {
pivotA?: Vec3;
pivotB?: Vec3;
axisA?: Vec3;
axisB?: Vec3;
maxForce?: number;
}
export class ConeTwistConstraint extends Constraint {
constructor(bodyA: Body, bodyB: Body, options?: IConeTwistConstraintOptions);
}
export class Equation {