mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
fixed some typos and missing properties in CannonJS definitions (#20599)
This commit is contained in:
14
types/cannon/index.d.ts
vendored
14
types/cannon/index.d.ts
vendored
@@ -428,7 +428,7 @@ declare module CANNON {
|
||||
angularVelocity?: Vec3;
|
||||
quaternion?: Quaternion;
|
||||
mass?: number;
|
||||
material?: number;
|
||||
material?: Material;
|
||||
type?: number;
|
||||
linearDamping?: number;
|
||||
angularDamping?: number;
|
||||
@@ -478,7 +478,7 @@ declare module CANNON {
|
||||
interpolatedQuaternion: Quaternion;
|
||||
shapes: Shape[];
|
||||
shapeOffsets: any[];
|
||||
shapeOrentiations: any[];
|
||||
shapeOrientations: any[];
|
||||
inertia: Vec3;
|
||||
invInertia: Vec3;
|
||||
invInertiaWorld: Mat3;
|
||||
@@ -735,7 +735,7 @@ declare module CANNON {
|
||||
vertices: Vec3[];
|
||||
worldVertices: Vec3[];
|
||||
worldVerticesNeedsUpdate: boolean;
|
||||
faces: number[];
|
||||
faces: number[][];
|
||||
faceNormals: Vec3[];
|
||||
uniqueEdges: Vec3[];
|
||||
|
||||
@@ -776,7 +776,7 @@ declare module CANNON {
|
||||
|
||||
export class Heightfield extends Shape {
|
||||
|
||||
data: number[];
|
||||
data: number[][];
|
||||
maxValue: number;
|
||||
minValue: number;
|
||||
elementSize: number;
|
||||
@@ -930,7 +930,7 @@ declare module CANNON {
|
||||
}
|
||||
|
||||
export class World extends EventTarget {
|
||||
|
||||
iterations: number;
|
||||
dt: number;
|
||||
allowSleep: boolean;
|
||||
contacts: ContactEquation[];
|
||||
@@ -992,6 +992,10 @@ declare module CANNON {
|
||||
|
||||
}
|
||||
|
||||
export interface ICollisionEvent extends IBodyEvent {
|
||||
contact: any;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user