mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Updated gravity definition. (#13088)
This commit is contained in:
Vendored
+6
-2
@@ -2924,10 +2924,14 @@ declare namespace Matter {
|
||||
}
|
||||
|
||||
interface IWorldDefinition extends ICompositeDefinition {
|
||||
gravity?: Vector;
|
||||
gravity?: Gravity;
|
||||
bounds?: Bounds;
|
||||
}
|
||||
|
||||
interface Gravity extends Vector {
|
||||
scale: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* The `Matter.World` module contains methods for creating and manipulating the world composite.
|
||||
* A `Matter.World` is a `Matter.Composite` body, which is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`.
|
||||
@@ -2994,7 +2998,7 @@ declare namespace Matter {
|
||||
*/
|
||||
static create(options: IWorldDefinition): World;
|
||||
|
||||
gravity: Vector;
|
||||
gravity: Gravity;
|
||||
bounds: Bounds;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user