typescript-to-gdscript 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +324 -0
- package/dist/cache/index.d.ts +203 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +609 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/checker/godot-project.d.ts +15 -0
- package/dist/checker/godot-project.d.ts.map +1 -0
- package/dist/checker/godot-project.js +14 -0
- package/dist/checker/godot-project.js.map +1 -0
- package/dist/checker/index.d.ts +61 -0
- package/dist/checker/index.d.ts.map +1 -0
- package/dist/checker/index.js +229 -0
- package/dist/checker/index.js.map +1 -0
- package/dist/checker/ts-diagnostics.d.ts +11 -0
- package/dist/checker/ts-diagnostics.d.ts.map +1 -0
- package/dist/checker/ts-diagnostics.js +67 -0
- package/dist/checker/ts-diagnostics.js.map +1 -0
- package/dist/cli/clear-cache.d.ts +3 -0
- package/dist/cli/clear-cache.d.ts.map +1 -0
- package/dist/cli/clear-cache.js +42 -0
- package/dist/cli/clear-cache.js.map +1 -0
- package/dist/cli/convert-gd.d.ts +3 -0
- package/dist/cli/convert-gd.d.ts.map +1 -0
- package/dist/cli/convert-gd.js +148 -0
- package/dist/cli/convert-gd.js.map +1 -0
- package/dist/cli/convert.d.ts +3 -0
- package/dist/cli/convert.d.ts.map +1 -0
- package/dist/cli/convert.js +165 -0
- package/dist/cli/convert.js.map +1 -0
- package/dist/cli/generate-addon-typings.d.ts +3 -0
- package/dist/cli/generate-addon-typings.d.ts.map +1 -0
- package/dist/cli/generate-addon-typings.js +31 -0
- package/dist/cli/generate-addon-typings.js.map +1 -0
- package/dist/cli/generate-gdscript-global-typings.d.ts +3 -0
- package/dist/cli/generate-gdscript-global-typings.d.ts.map +1 -0
- package/dist/cli/generate-gdscript-global-typings.js +172 -0
- package/dist/cli/generate-gdscript-global-typings.js.map +1 -0
- package/dist/cli/generate-typings.d.ts +3 -0
- package/dist/cli/generate-typings.d.ts.map +1 -0
- package/dist/cli/generate-typings.js +48 -0
- package/dist/cli/generate-typings.js.map +1 -0
- package/dist/cli/helpers.d.ts +47 -0
- package/dist/cli/helpers.d.ts.map +1 -0
- package/dist/cli/helpers.js +180 -0
- package/dist/cli/helpers.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +35 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init.d.ts +8 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +222 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/initial-convert-gd-to-ts.d.ts +3 -0
- package/dist/cli/initial-convert-gd-to-ts.d.ts.map +1 -0
- package/dist/cli/initial-convert-gd-to-ts.js +149 -0
- package/dist/cli/initial-convert-gd-to-ts.js.map +1 -0
- package/dist/cli/lint.d.ts +3 -0
- package/dist/cli/lint.d.ts.map +1 -0
- package/dist/cli/lint.js +191 -0
- package/dist/cli/lint.js.map +1 -0
- package/dist/cli/open-editor.d.ts +21 -0
- package/dist/cli/open-editor.d.ts.map +1 -0
- package/dist/cli/open-editor.js +148 -0
- package/dist/cli/open-editor.js.map +1 -0
- package/dist/cli/set-latest.d.ts +3 -0
- package/dist/cli/set-latest.d.ts.map +1 -0
- package/dist/cli/set-latest.js +23 -0
- package/dist/cli/set-latest.js.map +1 -0
- package/dist/cli/validate-gd.d.ts +3 -0
- package/dist/cli/validate-gd.d.ts.map +1 -0
- package/dist/cli/validate-gd.js +37 -0
- package/dist/cli/validate-gd.js.map +1 -0
- package/dist/cli/watch.d.ts +3 -0
- package/dist/cli/watch.d.ts.map +1 -0
- package/dist/cli/watch.js +58 -0
- package/dist/cli/watch.js.map +1 -0
- package/dist/config/index.d.ts +142 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +161 -0
- package/dist/config/index.js.map +1 -0
- package/dist/converter/common/index.d.ts +169 -0
- package/dist/converter/common/index.d.ts.map +1 -0
- package/dist/converter/common/index.js +298 -0
- package/dist/converter/common/index.js.map +1 -0
- package/dist/converter/gd-to-ts/class-scope.d.ts +80 -0
- package/dist/converter/gd-to-ts/class-scope.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/class-scope.js +208 -0
- package/dist/converter/gd-to-ts/class-scope.js.map +1 -0
- package/dist/converter/gd-to-ts/context.d.ts +94 -0
- package/dist/converter/gd-to-ts/context.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/context.js +71 -0
- package/dist/converter/gd-to-ts/context.js.map +1 -0
- package/dist/converter/gd-to-ts/expressions.d.ts +18 -0
- package/dist/converter/gd-to-ts/expressions.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/expressions.js +535 -0
- package/dist/converter/gd-to-ts/expressions.js.map +1 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.d.ts +34 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.js +191 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.js.map +1 -0
- package/dist/converter/gd-to-ts/functions.d.ts +20 -0
- package/dist/converter/gd-to-ts/functions.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/functions.js +313 -0
- package/dist/converter/gd-to-ts/functions.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.d.ts +42 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.js +173 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.d.ts +19 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.js +116 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable.d.ts +41 -0
- package/dist/converter/gd-to-ts/helpers/nullable.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable.js +526 -0
- package/dist/converter/gd-to-ts/helpers/nullable.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.d.ts +20 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.js +114 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.d.ts +48 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.js +217 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.d.ts +64 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.js +336 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.js.map +1 -0
- package/dist/converter/gd-to-ts/imports.d.ts +47 -0
- package/dist/converter/gd-to-ts/imports.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/imports.js +98 -0
- package/dist/converter/gd-to-ts/imports.js.map +1 -0
- package/dist/converter/gd-to-ts/index.d.ts +59 -0
- package/dist/converter/gd-to-ts/index.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/index.js +189 -0
- package/dist/converter/gd-to-ts/index.js.map +1 -0
- package/dist/converter/gd-to-ts/inject-imports.d.ts +55 -0
- package/dist/converter/gd-to-ts/inject-imports.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/inject-imports.js +161 -0
- package/dist/converter/gd-to-ts/inject-imports.js.map +1 -0
- package/dist/converter/gd-to-ts/members.d.ts +15 -0
- package/dist/converter/gd-to-ts/members.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/members.js +397 -0
- package/dist/converter/gd-to-ts/members.js.map +1 -0
- package/dist/converter/gd-to-ts/source-emitter.d.ts +27 -0
- package/dist/converter/gd-to-ts/source-emitter.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/source-emitter.js +420 -0
- package/dist/converter/gd-to-ts/source-emitter.js.map +1 -0
- package/dist/converter/gd-to-ts/statements.d.ts +6 -0
- package/dist/converter/gd-to-ts/statements.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/statements.js +385 -0
- package/dist/converter/gd-to-ts/statements.js.map +1 -0
- package/dist/converter/gd-to-ts/ts-helpers.d.ts +49 -0
- package/dist/converter/gd-to-ts/ts-helpers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/ts-helpers.js +161 -0
- package/dist/converter/gd-to-ts/ts-helpers.js.map +1 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts +41 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/type-inference.js +168 -0
- package/dist/converter/gd-to-ts/type-inference.js.map +1 -0
- package/dist/converter/ts-to-gd/class-body.d.ts +62 -0
- package/dist/converter/ts-to-gd/class-body.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/class-body.js +290 -0
- package/dist/converter/ts-to-gd/class-body.js.map +1 -0
- package/dist/converter/ts-to-gd/class-members.d.ts +18 -0
- package/dist/converter/ts-to-gd/class-members.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/class-members.js +246 -0
- package/dist/converter/ts-to-gd/class-members.js.map +1 -0
- package/dist/converter/ts-to-gd/diagnostics.d.ts +27 -0
- package/dist/converter/ts-to-gd/diagnostics.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/diagnostics.js +95 -0
- package/dist/converter/ts-to-gd/diagnostics.js.map +1 -0
- package/dist/converter/ts-to-gd/emitter.d.ts +40 -0
- package/dist/converter/ts-to-gd/emitter.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/emitter.js +88 -0
- package/dist/converter/ts-to-gd/emitter.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts +46 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/expressions.js +793 -0
- package/dist/converter/ts-to-gd/expressions.js.map +1 -0
- package/dist/converter/ts-to-gd/file-scope.d.ts +42 -0
- package/dist/converter/ts-to-gd/file-scope.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/file-scope.js +463 -0
- package/dist/converter/ts-to-gd/file-scope.js.map +1 -0
- package/dist/converter/ts-to-gd/gd-getset.d.ts +31 -0
- package/dist/converter/ts-to-gd/gd-getset.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/gd-getset.js +219 -0
- package/dist/converter/ts-to-gd/gd-getset.js.map +1 -0
- package/dist/converter/ts-to-gd/gd-helpers.d.ts +44 -0
- package/dist/converter/ts-to-gd/gd-helpers.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/gd-helpers.js +458 -0
- package/dist/converter/ts-to-gd/gd-helpers.js.map +1 -0
- package/dist/converter/ts-to-gd/imports.d.ts +67 -0
- package/dist/converter/ts-to-gd/imports.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/imports.js +150 -0
- package/dist/converter/ts-to-gd/imports.js.map +1 -0
- package/dist/converter/ts-to-gd/index.d.ts +34 -0
- package/dist/converter/ts-to-gd/index.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/index.js +52 -0
- package/dist/converter/ts-to-gd/index.js.map +1 -0
- package/dist/converter/ts-to-gd/parameters.d.ts +12 -0
- package/dist/converter/ts-to-gd/parameters.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/parameters.js +100 -0
- package/dist/converter/ts-to-gd/parameters.js.map +1 -0
- package/dist/converter/ts-to-gd/statements.d.ts +12 -0
- package/dist/converter/ts-to-gd/statements.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/statements.js +262 -0
- package/dist/converter/ts-to-gd/statements.js.map +1 -0
- package/dist/converter/ts-to-gd/transformer-types.d.ts +33 -0
- package/dist/converter/ts-to-gd/transformer-types.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/transformer-types.js +2 -0
- package/dist/converter/ts-to-gd/transformer-types.js.map +1 -0
- package/dist/converter/ts-to-gd/transformer.d.ts +83 -0
- package/dist/converter/ts-to-gd/transformer.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/transformer.js +344 -0
- package/dist/converter/ts-to-gd/transformer.js.map +1 -0
- package/dist/eslint/plugin.d.ts +11 -0
- package/dist/eslint/plugin.d.ts.map +1 -0
- package/dist/eslint/plugin.js +12 -0
- package/dist/eslint/plugin.js.map +1 -0
- package/dist/eslint/rules/convert.d.ts +4 -0
- package/dist/eslint/rules/convert.d.ts.map +1 -0
- package/dist/eslint/rules/convert.js +286 -0
- package/dist/eslint/rules/convert.js.map +1 -0
- package/dist/eslint/rules/no-in-variant.d.ts +10 -0
- package/dist/eslint/rules/no-in-variant.d.ts.map +1 -0
- package/dist/eslint/rules/no-in-variant.js +126 -0
- package/dist/eslint/rules/no-in-variant.js.map +1 -0
- package/dist/godot-validate/error-parser.d.ts +64 -0
- package/dist/godot-validate/error-parser.d.ts.map +1 -0
- package/dist/godot-validate/error-parser.js +170 -0
- package/dist/godot-validate/error-parser.js.map +1 -0
- package/dist/godot-validate/index.d.ts +76 -0
- package/dist/godot-validate/index.d.ts.map +1 -0
- package/dist/godot-validate/index.js +267 -0
- package/dist/godot-validate/index.js.map +1 -0
- package/dist/godot-validate/source-map-remap.d.ts +48 -0
- package/dist/godot-validate/source-map-remap.d.ts.map +1 -0
- package/dist/godot-validate/source-map-remap.js +195 -0
- package/dist/godot-validate/source-map-remap.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/parser/gdscript/generate-types.d.ts +7 -0
- package/dist/parser/gdscript/generate-types.d.ts.map +1 -0
- package/dist/parser/gdscript/generate-types.js +134 -0
- package/dist/parser/gdscript/generate-types.js.map +1 -0
- package/dist/parser/gdscript/index.d.ts +9 -0
- package/dist/parser/gdscript/index.d.ts.map +1 -0
- package/dist/parser/gdscript/index.js +17 -0
- package/dist/parser/gdscript/index.js.map +1 -0
- package/dist/parser/gdscript/types.d.ts +689 -0
- package/dist/parser/gdscript/types.d.ts.map +1 -0
- package/dist/parser/gdscript/types.js +89 -0
- package/dist/parser/gdscript/types.js.map +1 -0
- package/dist/parser/godot-resource/index.d.ts +7 -0
- package/dist/parser/godot-resource/index.d.ts.map +1 -0
- package/dist/parser/godot-resource/index.js +14 -0
- package/dist/parser/godot-resource/index.js.map +1 -0
- package/dist/parser/godot-resource/types.d.ts +330 -0
- package/dist/parser/godot-resource/types.d.ts.map +1 -0
- package/dist/parser/godot-resource/types.js +22 -0
- package/dist/parser/godot-resource/types.js.map +1 -0
- package/dist/parser/typescript/index.d.ts +12 -0
- package/dist/parser/typescript/index.d.ts.map +1 -0
- package/dist/parser/typescript/index.js +30 -0
- package/dist/parser/typescript/index.js.map +1 -0
- package/dist/sourcemap/index.d.ts +59 -0
- package/dist/sourcemap/index.d.ts.map +1 -0
- package/dist/sourcemap/index.js +85 -0
- package/dist/sourcemap/index.js.map +1 -0
- package/dist/ts-plugin/index.d.ts +47 -0
- package/dist/ts-plugin/index.d.ts.map +1 -0
- package/dist/ts-plugin/index.js +227 -0
- package/dist/ts-plugin/index.js.map +1 -0
- package/dist/ts-plugin/lint.d.ts +48 -0
- package/dist/ts-plugin/lint.d.ts.map +1 -0
- package/dist/ts-plugin/lint.js +424 -0
- package/dist/ts-plugin/lint.js.map +1 -0
- package/dist/ts-plugin/lru.d.ts +40 -0
- package/dist/ts-plugin/lru.d.ts.map +1 -0
- package/dist/ts-plugin/lru.js +82 -0
- package/dist/ts-plugin/lru.js.map +1 -0
- package/dist/ts-plugin/navigation.d.ts +58 -0
- package/dist/ts-plugin/navigation.d.ts.map +1 -0
- package/dist/ts-plugin/navigation.js +427 -0
- package/dist/ts-plugin/navigation.js.map +1 -0
- package/dist/ts-plugin/shadow-refs.d.ts +31 -0
- package/dist/ts-plugin/shadow-refs.d.ts.map +1 -0
- package/dist/ts-plugin/shadow-refs.js +76 -0
- package/dist/ts-plugin/shadow-refs.js.map +1 -0
- package/dist/ts-plugin/snapshot-transform.d.ts +61 -0
- package/dist/ts-plugin/snapshot-transform.d.ts.map +1 -0
- package/dist/ts-plugin/snapshot-transform.js +55 -0
- package/dist/ts-plugin/snapshot-transform.js.map +1 -0
- package/dist/typings/class-generator.d.ts +54 -0
- package/dist/typings/class-generator.d.ts.map +1 -0
- package/dist/typings/class-generator.js +524 -0
- package/dist/typings/class-generator.js.map +1 -0
- package/dist/typings/classes.d.ts +24 -0
- package/dist/typings/classes.d.ts.map +1 -0
- package/dist/typings/classes.js +139 -0
- package/dist/typings/classes.js.map +1 -0
- package/dist/typings/content-generators.d.ts +62 -0
- package/dist/typings/content-generators.d.ts.map +1 -0
- package/dist/typings/content-generators.js +536 -0
- package/dist/typings/content-generators.js.map +1 -0
- package/dist/typings/global-generator.d.ts +32 -0
- package/dist/typings/global-generator.d.ts.map +1 -0
- package/dist/typings/global-generator.js +242 -0
- package/dist/typings/global-generator.js.map +1 -0
- package/dist/typings/godot-docs.d.ts +27 -0
- package/dist/typings/godot-docs.d.ts.map +1 -0
- package/dist/typings/godot-docs.js +310 -0
- package/dist/typings/godot-docs.js.map +1 -0
- package/dist/typings/godot-registry.d.ts +123 -0
- package/dist/typings/godot-registry.d.ts.map +1 -0
- package/dist/typings/godot-registry.js +157 -0
- package/dist/typings/godot-registry.js.map +1 -0
- package/dist/typings/index.d.ts +4 -0
- package/dist/typings/index.d.ts.map +1 -0
- package/dist/typings/index.js +4 -0
- package/dist/typings/index.js.map +1 -0
- package/dist/typings/override-system.d.ts +36 -0
- package/dist/typings/override-system.d.ts.map +1 -0
- package/dist/typings/override-system.js +341 -0
- package/dist/typings/override-system.js.map +1 -0
- package/dist/typings/registry-generator.d.ts +44 -0
- package/dist/typings/registry-generator.d.ts.map +1 -0
- package/dist/typings/registry-generator.js +170 -0
- package/dist/typings/registry-generator.js.map +1 -0
- package/dist/typings/scene-parser.d.ts +113 -0
- package/dist/typings/scene-parser.d.ts.map +1 -0
- package/dist/typings/scene-parser.js +436 -0
- package/dist/typings/scene-parser.js.map +1 -0
- package/dist/typings/scene-tree.d.ts +33 -0
- package/dist/typings/scene-tree.d.ts.map +1 -0
- package/dist/typings/scene-tree.js +118 -0
- package/dist/typings/scene-tree.js.map +1 -0
- package/dist/typings/scene-utils.d.ts +131 -0
- package/dist/typings/scene-utils.d.ts.map +1 -0
- package/dist/typings/scene-utils.js +604 -0
- package/dist/typings/scene-utils.js.map +1 -0
- package/dist/typings/scenes.d.ts +96 -0
- package/dist/typings/scenes.d.ts.map +1 -0
- package/dist/typings/scenes.js +368 -0
- package/dist/typings/scenes.js.map +1 -0
- package/dist/typings/type-mapping.d.ts +76 -0
- package/dist/typings/type-mapping.d.ts.map +1 -0
- package/dist/typings/type-mapping.js +239 -0
- package/dist/typings/type-mapping.js.map +1 -0
- package/dist/typings/xml-parser.d.ts +91 -0
- package/dist/typings/xml-parser.d.ts.map +1 -0
- package/dist/typings/xml-parser.js +275 -0
- package/dist/typings/xml-parser.js.map +1 -0
- package/dist/watcher/index.d.ts +74 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +410 -0
- package/dist/watcher/index.js.map +1 -0
- package/package.json +115 -0
- package/ts-plugin/index.js +9 -0
- package/ts-plugin/package.json +7 -0
- package/typings/classes/AABB.d.ts +177 -0
- package/typings/classes/AESContext.d.ts +34 -0
- package/typings/classes/AStar2D.d.ts +108 -0
- package/typings/classes/AStar3D.d.ts +108 -0
- package/typings/classes/AStarGrid2D.d.ts +184 -0
- package/typings/classes/AcceptDialog.d.ts +77 -0
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AimModifier3D.d.ts +40 -0
- package/typings/classes/AnimatableBody2D.d.ts +14 -0
- package/typings/classes/AnimatableBody3D.d.ts +14 -0
- package/typings/classes/AnimatedSprite2D.d.ts +108 -0
- package/typings/classes/AnimatedSprite3D.d.ts +89 -0
- package/typings/classes/AnimatedTexture.d.ts +54 -0
- package/typings/classes/Animation.d.ts +340 -0
- package/typings/classes/AnimationLibrary.d.ts +34 -0
- package/typings/classes/AnimationMixer.d.ts +226 -0
- package/typings/classes/AnimationNode.d.ts +116 -0
- package/typings/classes/AnimationNodeAdd2.d.ts +6 -0
- package/typings/classes/AnimationNodeAdd3.d.ts +6 -0
- package/typings/classes/AnimationNodeAnimation.d.ts +64 -0
- package/typings/classes/AnimationNodeBlend2.d.ts +6 -0
- package/typings/classes/AnimationNodeBlend3.d.ts +6 -0
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +79 -0
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +104 -0
- package/typings/classes/AnimationNodeBlendTree.d.ts +53 -0
- package/typings/classes/AnimationNodeExtension.d.ts +18 -0
- package/typings/classes/AnimationNodeOneShot.d.ts +78 -0
- package/typings/classes/AnimationNodeOutput.d.ts +6 -0
- package/typings/classes/AnimationNodeStateMachine.d.ts +80 -0
- package/typings/classes/AnimationNodeStateMachinePlayback.d.ts +67 -0
- package/typings/classes/AnimationNodeStateMachineTransition.d.ts +83 -0
- package/typings/classes/AnimationNodeSub2.d.ts +6 -0
- package/typings/classes/AnimationNodeSync.d.ts +13 -0
- package/typings/classes/AnimationNodeTimeScale.d.ts +6 -0
- package/typings/classes/AnimationNodeTimeSeek.d.ts +12 -0
- package/typings/classes/AnimationNodeTransition.d.ts +45 -0
- package/typings/classes/AnimationPlayer.d.ts +203 -0
- package/typings/classes/AnimationRootNode.d.ts +8 -0
- package/typings/classes/AnimationTree.d.ts +35 -0
- package/typings/classes/Area2D.d.ts +166 -0
- package/typings/classes/Area3D.d.ts +214 -0
- package/typings/classes/Array.d.ts +301 -0
- package/typings/classes/ArrayMesh.d.ts +94 -0
- package/typings/classes/ArrayOccluder3D.d.ts +23 -0
- package/typings/classes/AspectRatioContainer.d.ts +46 -0
- package/typings/classes/AtlasTexture.d.ts +32 -0
- package/typings/classes/AudioBusLayout.d.ts +6 -0
- package/typings/classes/AudioEffect.d.ts +11 -0
- package/typings/classes/AudioEffectAmplify.d.ts +19 -0
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +6 -0
- package/typings/classes/AudioEffectBandPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectCapture.d.ts +35 -0
- package/typings/classes/AudioEffectChorus.d.ts +108 -0
- package/typings/classes/AudioEffectCompressor.d.ts +47 -0
- package/typings/classes/AudioEffectDelay.d.ts +71 -0
- package/typings/classes/AudioEffectDistortion.d.ts +55 -0
- package/typings/classes/AudioEffectEQ.d.ts +15 -0
- package/typings/classes/AudioEffectEQ10.d.ts +9 -0
- package/typings/classes/AudioEffectEQ21.d.ts +9 -0
- package/typings/classes/AudioEffectEQ6.d.ts +9 -0
- package/typings/classes/AudioEffectFilter.d.ts +50 -0
- package/typings/classes/AudioEffectHardLimiter.d.ts +24 -0
- package/typings/classes/AudioEffectHighPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +6 -0
- package/typings/classes/AudioEffectInstance.d.ts +16 -0
- package/typings/classes/AudioEffectLimiter.d.ts +26 -0
- package/typings/classes/AudioEffectLowPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +6 -0
- package/typings/classes/AudioEffectNotchFilter.d.ts +6 -0
- package/typings/classes/AudioEffectPanner.d.ts +15 -0
- package/typings/classes/AudioEffectPhaser.d.ts +37 -0
- package/typings/classes/AudioEffectPitchShift.d.ts +47 -0
- package/typings/classes/AudioEffectRecord.d.ts +19 -0
- package/typings/classes/AudioEffectReverb.d.ts +55 -0
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +40 -0
- package/typings/classes/AudioEffectSpectrumAnalyzerInstance.d.ts +17 -0
- package/typings/classes/AudioEffectStereoEnhance.d.ts +27 -0
- package/typings/classes/AudioListener2D.d.ts +15 -0
- package/typings/classes/AudioListener3D.d.ts +37 -0
- package/typings/classes/AudioSample.d.ts +6 -0
- package/typings/classes/AudioSamplePlayback.d.ts +6 -0
- package/typings/classes/AudioServer.d.ts +199 -0
- package/typings/classes/AudioStream.d.ts +66 -0
- package/typings/classes/AudioStreamGenerator.d.ts +38 -0
- package/typings/classes/AudioStreamGeneratorPlayback.d.ts +28 -0
- package/typings/classes/AudioStreamMicrophone.d.ts +6 -0
- package/typings/classes/AudioStreamPlayback.d.ts +69 -0
- package/typings/classes/AudioStreamPlaybackPolyphonic.d.ts +32 -0
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +16 -0
- package/typings/classes/AudioStreamPlayer.d.ts +110 -0
- package/typings/classes/AudioStreamPlayer2D.d.ts +96 -0
- package/typings/classes/AudioStreamPlayer3D.d.ts +162 -0
- package/typings/classes/AudioStreamPolyphonic.d.ts +12 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +67 -0
- package/typings/classes/AudioStreamWAV.d.ts +87 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BackBufferCopy.d.ts +26 -0
- package/typings/classes/BaseButton.d.ts +116 -0
- package/typings/classes/BaseMaterial3D.d.ts +1021 -0
- package/typings/classes/Basis.d.ts +225 -0
- package/typings/classes/BitMap.d.ts +42 -0
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/Bone2D.d.ts +45 -0
- package/typings/classes/BoneAttachment3D.d.ts +39 -0
- package/typings/classes/BoneConstraint3D.d.ts +67 -0
- package/typings/classes/BoneMap.d.ts +39 -0
- package/typings/classes/BoneTwistDisperser3D.d.ts +126 -0
- package/typings/classes/BoxContainer.d.ts +36 -0
- package/typings/classes/BoxMesh.d.ts +22 -0
- package/typings/classes/BoxOccluder3D.d.ts +10 -0
- package/typings/classes/BoxShape3D.d.ts +10 -0
- package/typings/classes/Button.d.ts +75 -0
- package/typings/classes/ButtonGroup.d.ts +21 -0
- package/typings/classes/CCDIK3D.d.ts +6 -0
- package/typings/classes/CPUParticles2D.d.ts +397 -0
- package/typings/classes/CPUParticles3D.d.ts +421 -0
- package/typings/classes/Callable.d.ts +203 -0
- package/typings/classes/CallbackTweener.d.ts +11 -0
- package/typings/classes/Camera2D.d.ts +214 -0
- package/typings/classes/Camera3D.d.ts +207 -0
- package/typings/classes/CameraAttributes.d.ts +35 -0
- package/typings/classes/CameraAttributesPhysical.d.ts +61 -0
- package/typings/classes/CameraAttributesPractical.d.ts +64 -0
- package/typings/classes/CameraFeed.d.ts +81 -0
- package/typings/classes/CameraServer.d.ts +44 -0
- package/typings/classes/CameraTexture.d.ts +19 -0
- package/typings/classes/CanvasGroup.d.ts +24 -0
- package/typings/classes/CanvasItem.d.ts +503 -0
- package/typings/classes/CanvasItemMaterial.d.ts +61 -0
- package/typings/classes/CanvasLayer.d.ts +74 -0
- package/typings/classes/CanvasModulate.d.ts +10 -0
- package/typings/classes/CanvasTexture.d.ts +42 -0
- package/typings/classes/CapsuleMesh.d.ts +28 -0
- package/typings/classes/CapsuleShape2D.d.ts +26 -0
- package/typings/classes/CapsuleShape3D.d.ts +26 -0
- package/typings/classes/CenterContainer.d.ts +10 -0
- package/typings/classes/ChainIK3D.d.ts +50 -0
- package/typings/classes/CharFXTransform.d.ts +88 -0
- package/typings/classes/CharacterBody2D.d.ts +199 -0
- package/typings/classes/CharacterBody3D.d.ts +201 -0
- package/typings/classes/CheckBox.d.ts +8 -0
- package/typings/classes/CheckButton.d.ts +8 -0
- package/typings/classes/CircleShape2D.d.ts +10 -0
- package/typings/classes/ClassDB.d.ts +110 -0
- package/typings/classes/CodeEdit.d.ts +402 -0
- package/typings/classes/CodeHighlighter.d.ts +81 -0
- package/typings/classes/CollisionObject2D.d.ts +171 -0
- package/typings/classes/CollisionObject3D.d.ts +141 -0
- package/typings/classes/CollisionPolygon2D.d.ts +51 -0
- package/typings/classes/CollisionPolygon3D.d.ts +39 -0
- package/typings/classes/CollisionShape2D.d.ts +41 -0
- package/typings/classes/CollisionShape3D.d.ts +36 -0
- package/typings/classes/Color.d.ts +517 -0
- package/typings/classes/ColorPalette.d.ts +12 -0
- package/typings/classes/ColorPicker.d.ts +118 -0
- package/typings/classes/ColorPickerButton.d.ts +37 -0
- package/typings/classes/ColorRect.d.ts +10 -0
- package/typings/classes/Compositor.d.ts +12 -0
- package/typings/classes/CompositorEffect.d.ts +76 -0
- package/typings/classes/CompressedCubemap.d.ts +6 -0
- package/typings/classes/CompressedCubemapArray.d.ts +6 -0
- package/typings/classes/CompressedTexture2D.d.ts +13 -0
- package/typings/classes/CompressedTexture2DArray.d.ts +6 -0
- package/typings/classes/CompressedTexture3D.d.ts +12 -0
- package/typings/classes/CompressedTextureLayered.d.ts +12 -0
- package/typings/classes/ConcavePolygonShape2D.d.ts +12 -0
- package/typings/classes/ConcavePolygonShape3D.d.ts +21 -0
- package/typings/classes/ConeTwistJoint3D.d.ts +63 -0
- package/typings/classes/ConfigFile.d.ts +71 -0
- package/typings/classes/ConfirmationDialog.d.ts +19 -0
- package/typings/classes/Container.d.ts +42 -0
- package/typings/classes/Control.d.ts +1125 -0
- package/typings/classes/ConvertTransformModifier3D.d.ts +65 -0
- package/typings/classes/ConvexPolygonShape2D.d.ts +18 -0
- package/typings/classes/ConvexPolygonShape3D.d.ts +10 -0
- package/typings/classes/CopyTransformModifier3D.d.ts +117 -0
- package/typings/classes/Crypto.d.ts +41 -0
- package/typings/classes/CryptoKey.d.ts +26 -0
- package/typings/classes/Cubemap.d.ts +8 -0
- package/typings/classes/CubemapArray.d.ts +8 -0
- package/typings/classes/Curve.d.ts +96 -0
- package/typings/classes/Curve2D.d.ts +97 -0
- package/typings/classes/Curve3D.d.ts +129 -0
- package/typings/classes/CurveTexture.d.ts +30 -0
- package/typings/classes/CurveXYZTexture.d.ts +25 -0
- package/typings/classes/CylinderMesh.d.ts +48 -0
- package/typings/classes/CylinderShape3D.d.ts +14 -0
- package/typings/classes/DPITexture.d.ts +48 -0
- package/typings/classes/DTLSServer.d.ts +13 -0
- package/typings/classes/DampedSpringJoint2D.d.ts +28 -0
- package/typings/classes/Decal.d.ts +120 -0
- package/typings/classes/Dictionary.d.ts +181 -0
- package/typings/classes/DirAccess.d.ts +199 -0
- package/typings/classes/DirectionalLight2D.d.ts +16 -0
- package/typings/classes/DirectionalLight3D.d.ts +71 -0
- package/typings/classes/DisplayServer.d.ts +2153 -0
- package/typings/classes/DrawableTexture2D.d.ts +47 -0
- package/typings/classes/EditorCommandPalette.d.ts +21 -0
- package/typings/classes/EditorContextMenuPlugin.d.ts +59 -0
- package/typings/classes/EditorDebuggerPlugin.d.ts +33 -0
- package/typings/classes/EditorDebuggerSession.d.ts +41 -0
- package/typings/classes/EditorDock.d.ts +141 -0
- package/typings/classes/EditorExportPlatform.d.ts +125 -0
- package/typings/classes/EditorExportPlatformAppleEmbedded.d.ts +6 -0
- package/typings/classes/EditorExportPlatformExtension.d.ts +131 -0
- package/typings/classes/EditorExportPlatformPC.d.ts +6 -0
- package/typings/classes/EditorExportPlugin.d.ts +207 -0
- package/typings/classes/EditorExportPreset.d.ts +83 -0
- package/typings/classes/EditorFeatureProfile.d.ts +90 -0
- package/typings/classes/EditorFileDialog.d.ts +15 -0
- package/typings/classes/EditorFileSystem.d.ts +48 -0
- package/typings/classes/EditorFileSystemDirectory.d.ts +42 -0
- package/typings/classes/EditorFileSystemImportFormatSupportQuery.d.ts +12 -0
- package/typings/classes/EditorImportPlugin.d.ts +67 -0
- package/typings/classes/EditorInspector.d.ts +54 -0
- package/typings/classes/EditorInspectorPlugin.d.ts +34 -0
- package/typings/classes/EditorInterface.d.ts +254 -0
- package/typings/classes/EditorNode3DGizmo.d.ts +104 -0
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +103 -0
- package/typings/classes/EditorPaths.d.ts +52 -0
- package/typings/classes/EditorPlugin.d.ts +384 -0
- package/typings/classes/EditorProperty.d.ts +133 -0
- package/typings/classes/EditorResourceConversionPlugin.d.ts +20 -0
- package/typings/classes/EditorResourcePicker.d.ts +47 -0
- package/typings/classes/EditorResourcePreview.d.ts +25 -0
- package/typings/classes/EditorResourcePreviewGenerator.d.ts +34 -0
- package/typings/classes/EditorResourceTooltipPlugin.d.ts +20 -0
- package/typings/classes/EditorSceneFormatImporter.d.ts +36 -0
- package/typings/classes/EditorScenePostImport.d.ts +10 -0
- package/typings/classes/EditorScenePostImportPlugin.d.ts +57 -0
- package/typings/classes/EditorScript.d.ts +18 -0
- package/typings/classes/EditorScriptPicker.d.ts +10 -0
- package/typings/classes/EditorSelection.d.ts +29 -0
- package/typings/classes/EditorSettings.d.ts +1821 -0
- package/typings/classes/EditorSpinSlider.d.ts +65 -0
- package/typings/classes/EditorSyntaxHighlighter.d.ts +12 -0
- package/typings/classes/EditorToaster.d.ts +16 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +12 -0
- package/typings/classes/EditorUndoRedoManager.d.ts +86 -0
- package/typings/classes/EditorVCSInterface.d.ts +121 -0
- package/typings/classes/EncodedObjectAsID.d.ts +12 -0
- package/typings/classes/Engine.d.ts +202 -0
- package/typings/classes/EngineDebugger.d.ts +66 -0
- package/typings/classes/EngineProfiler.d.ts +14 -0
- package/typings/classes/Environment.d.ts +720 -0
- package/typings/classes/Expression.d.ts +20 -0
- package/typings/classes/ExternalTexture.d.ts +22 -0
- package/typings/classes/FABRIK3D.d.ts +6 -0
- package/typings/classes/FileAccess.d.ts +411 -0
- package/typings/classes/FileDialog.d.ts +277 -0
- package/typings/classes/FileSystemDock.d.ts +35 -0
- package/typings/classes/FlowContainer.d.ts +64 -0
- package/typings/classes/FogMaterial.d.ts +43 -0
- package/typings/classes/FogVolume.d.ts +26 -0
- package/typings/classes/FoldableContainer.d.ts +65 -0
- package/typings/classes/FoldableGroup.d.ts +21 -0
- package/typings/classes/Font.d.ts +144 -0
- package/typings/classes/FontFile.d.ts +286 -0
- package/typings/classes/FontVariation.d.ts +56 -0
- package/typings/classes/FramebufferCacheRD.d.ts +10 -0
- package/typings/classes/GDExtension.d.ts +26 -0
- package/typings/classes/GDExtensionManager.d.ts +60 -0
- package/typings/classes/GPUParticles2D.d.ts +220 -0
- package/typings/classes/GPUParticles3D.d.ts +239 -0
- package/typings/classes/GPUParticlesAttractor3D.d.ts +33 -0
- package/typings/classes/GPUParticlesAttractorBox3D.d.ts +10 -0
- package/typings/classes/GPUParticlesAttractorSphere3D.d.ts +13 -0
- package/typings/classes/GPUParticlesAttractorVectorField3D.d.ts +19 -0
- package/typings/classes/GPUParticlesCollision3D.d.ts +14 -0
- package/typings/classes/GPUParticlesCollisionBox3D.d.ts +10 -0
- package/typings/classes/GPUParticlesCollisionHeightField3D.d.ts +75 -0
- package/typings/classes/GPUParticlesCollisionSDF3D.d.ts +59 -0
- package/typings/classes/GPUParticlesCollisionSphere3D.d.ts +10 -0
- package/typings/classes/Generic6DOFJoint3D.d.ts +241 -0
- package/typings/classes/Geometry2D.d.ts +147 -0
- package/typings/classes/Geometry3D.d.ts +67 -0
- package/typings/classes/GeometryInstance3D.d.ts +183 -0
- package/typings/classes/GodotInstance.d.ts +20 -0
- package/typings/classes/Gradient.d.ts +74 -0
- package/typings/classes/GradientTexture1D.d.ts +18 -0
- package/typings/classes/GradientTexture2D.d.ts +64 -0
- package/typings/classes/GraphEdit.d.ts +306 -0
- package/typings/classes/GraphElement.d.ts +56 -0
- package/typings/classes/GraphFrame.d.ts +46 -0
- package/typings/classes/GraphNode.d.ts +132 -0
- package/typings/classes/GridContainer.d.ts +12 -0
- package/typings/classes/GrooveJoint2D.d.ts +18 -0
- package/typings/classes/HBoxContainer.d.ts +6 -0
- package/typings/classes/HFlowContainer.d.ts +6 -0
- package/typings/classes/HMACContext.d.ts +16 -0
- package/typings/classes/HScrollBar.d.ts +6 -0
- package/typings/classes/HSeparator.d.ts +6 -0
- package/typings/classes/HSlider.d.ts +6 -0
- package/typings/classes/HSplitContainer.d.ts +8 -0
- package/typings/classes/HTTPClient.d.ts +384 -0
- package/typings/classes/HTTPRequest.d.ts +124 -0
- package/typings/classes/HashingContext.d.ts +22 -0
- package/typings/classes/HeightMapShape3D.d.ts +36 -0
- package/typings/classes/HingeJoint3D.d.ts +66 -0
- package/typings/classes/IKModifier3D.d.ts +22 -0
- package/typings/classes/IP.d.ts +71 -0
- package/typings/classes/Image.d.ts +567 -0
- package/typings/classes/ImageFormatLoader.d.ts +11 -0
- package/typings/classes/ImageFormatLoaderExtension.d.ts +20 -0
- package/typings/classes/ImageTexture.d.ts +25 -0
- package/typings/classes/ImageTexture3D.d.ts +14 -0
- package/typings/classes/ImageTextureLayered.d.ts +20 -0
- package/typings/classes/ImmediateMesh.d.ts +31 -0
- package/typings/classes/ImporterMesh.d.ts +84 -0
- package/typings/classes/ImporterMeshInstance3D.d.ts +35 -0
- package/typings/classes/Input.d.ts +504 -0
- package/typings/classes/InputEvent.d.ts +85 -0
- package/typings/classes/InputEventAction.d.ts +27 -0
- package/typings/classes/InputEventFromWindow.d.ts +10 -0
- package/typings/classes/InputEventGesture.d.ts +11 -0
- package/typings/classes/InputEventJoypadButton.d.ts +16 -0
- package/typings/classes/InputEventJoypadMotion.d.ts +16 -0
- package/typings/classes/InputEventKey.d.ts +86 -0
- package/typings/classes/InputEventMIDI.d.ts +59 -0
- package/typings/classes/InputEventMagnifyGesture.d.ts +12 -0
- package/typings/classes/InputEventMouse.d.ts +25 -0
- package/typings/classes/InputEventMouseButton.d.ts +26 -0
- package/typings/classes/InputEventMouseMotion.d.ts +54 -0
- package/typings/classes/InputEventPanGesture.d.ts +10 -0
- package/typings/classes/InputEventScreenDrag.d.ts +54 -0
- package/typings/classes/InputEventScreenTouch.d.ts +24 -0
- package/typings/classes/InputEventShortcut.d.ts +12 -0
- package/typings/classes/InputEventWithModifiers.d.ts +37 -0
- package/typings/classes/InputMap.d.ts +50 -0
- package/typings/classes/InstancePlaceholder.d.ts +20 -0
- package/typings/classes/IntervalTweener.d.ts +6 -0
- package/typings/classes/ItemList.d.ts +277 -0
- package/typings/classes/IterateIK3D.d.ts +85 -0
- package/typings/classes/JNISingleton.d.ts +8 -0
- package/typings/classes/JSON.d.ts +53 -0
- package/typings/classes/JSONRPC.d.ts +59 -0
- package/typings/classes/JacobianIK3D.d.ts +6 -0
- package/typings/classes/JavaClass.d.ts +16 -0
- package/typings/classes/JavaClassWrapper.d.ts +20 -0
- package/typings/classes/JavaObject.d.ts +10 -0
- package/typings/classes/JavaScriptBridge.d.ts +62 -0
- package/typings/classes/JavaScriptObject.d.ts +6 -0
- package/typings/classes/Joint2D.d.ts +28 -0
- package/typings/classes/Joint3D.d.ts +34 -0
- package/typings/classes/JointLimitation3D.d.ts +6 -0
- package/typings/classes/JointLimitationCone3D.d.ts +13 -0
- package/typings/classes/KinematicCollision2D.d.ts +36 -0
- package/typings/classes/KinematicCollision3D.d.ts +50 -0
- package/typings/classes/Label.d.ts +134 -0
- package/typings/classes/Label3D.d.ts +202 -0
- package/typings/classes/LabelSettings.d.ts +93 -0
- package/typings/classes/Light2D.d.ts +109 -0
- package/typings/classes/Light3D.d.ts +227 -0
- package/typings/classes/LightOccluder2D.d.ts +22 -0
- package/typings/classes/LightmapGI.d.ts +225 -0
- package/typings/classes/LightmapGIData.d.ts +50 -0
- package/typings/classes/LightmapProbe.d.ts +6 -0
- package/typings/classes/Lightmapper.d.ts +6 -0
- package/typings/classes/LightmapperRD.d.ts +6 -0
- package/typings/classes/LimitAngularVelocityModifier3D.d.ts +50 -0
- package/typings/classes/Line2D.d.ts +127 -0
- package/typings/classes/LineEdit.d.ts +370 -0
- package/typings/classes/LinkButton.d.ts +54 -0
- package/typings/classes/Logger.d.ts +31 -0
- package/typings/classes/LookAtModifier3D.d.ts +196 -0
- package/typings/classes/MainLoop.d.ts +80 -0
- package/typings/classes/MarginContainer.d.ts +6 -0
- package/typings/classes/Marker2D.d.ts +10 -0
- package/typings/classes/Marker3D.d.ts +10 -0
- package/typings/classes/Marshalls.d.ts +27 -0
- package/typings/classes/Material.d.ts +50 -0
- package/typings/classes/MenuBar.d.ts +64 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/Mesh.d.ts +255 -0
- package/typings/classes/MeshConvexDecompositionSettings.d.ts +68 -0
- package/typings/classes/MeshDataTool.d.ts +99 -0
- package/typings/classes/MeshInstance2D.d.ts +19 -0
- package/typings/classes/MeshInstance3D.d.ts +87 -0
- package/typings/classes/MeshLibrary.d.ts +68 -0
- package/typings/classes/MeshTexture.d.ts +19 -0
- package/typings/classes/MethodTweener.d.ts +18 -0
- package/typings/classes/MissingNode.d.ts +26 -0
- package/typings/classes/MissingResource.d.ts +16 -0
- package/typings/classes/ModifierBoneTarget3D.d.ts +14 -0
- package/typings/classes/MovieWriter.d.ts +36 -0
- package/typings/classes/MultiMesh.d.ts +138 -0
- package/typings/classes/MultiMeshInstance2D.d.ts +19 -0
- package/typings/classes/MultiMeshInstance3D.d.ts +12 -0
- package/typings/classes/MultiplayerAPI.d.ts +93 -0
- package/typings/classes/MultiplayerAPIExtension.d.ts +24 -0
- package/typings/classes/MultiplayerPeer.d.ts +90 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +90 -0
- package/typings/classes/Mutex.d.ts +22 -0
- package/typings/classes/NativeMenu.d.ts +428 -0
- package/typings/classes/NavigationAgent2D.d.ts +292 -0
- package/typings/classes/NavigationAgent3D.d.ts +311 -0
- package/typings/classes/NavigationLink2D.d.ts +77 -0
- package/typings/classes/NavigationLink3D.d.ts +77 -0
- package/typings/classes/NavigationMesh.d.ts +207 -0
- package/typings/classes/NavigationMeshGenerator.d.ts +22 -0
- package/typings/classes/NavigationMeshSourceGeometryData2D.d.ts +52 -0
- package/typings/classes/NavigationMeshSourceGeometryData3D.d.ts +64 -0
- package/typings/classes/NavigationObstacle2D.d.ts +67 -0
- package/typings/classes/NavigationObstacle3D.d.ts +80 -0
- package/typings/classes/NavigationPathQueryParameters2D.d.ts +114 -0
- package/typings/classes/NavigationPathQueryParameters3D.d.ts +114 -0
- package/typings/classes/NavigationPathQueryResult2D.d.ts +41 -0
- package/typings/classes/NavigationPathQueryResult3D.d.ts +41 -0
- package/typings/classes/NavigationPolygon.d.ts +150 -0
- package/typings/classes/NavigationRegion2D.d.ts +74 -0
- package/typings/classes/NavigationRegion3D.d.ts +72 -0
- package/typings/classes/NavigationServer2D.d.ts +443 -0
- package/typings/classes/NavigationServer2DManager.d.ts +16 -0
- package/typings/classes/NavigationServer3D.d.ts +499 -0
- package/typings/classes/NavigationServer3DManager.d.ts +16 -0
- package/typings/classes/NinePatchRect.d.ts +65 -0
- package/typings/classes/Node.d.ts +1021 -0
- package/typings/classes/Node2D.d.ts +107 -0
- package/typings/classes/Node3D.d.ts +331 -0
- package/typings/classes/Node3DGizmo.d.ts +6 -0
- package/typings/classes/NodePath.d.ts +107 -0
- package/typings/classes/ORMMaterial3D.d.ts +6 -0
- package/typings/classes/OS.d.ts +556 -0
- package/typings/classes/Object.d.ts +434 -0
- package/typings/classes/Occluder3D.d.ts +10 -0
- package/typings/classes/OccluderInstance3D.d.ts +39 -0
- package/typings/classes/OccluderPolygon2D.d.ts +28 -0
- package/typings/classes/OmniLight3D.d.ts +31 -0
- package/typings/classes/OptimizedTranslation.d.ts +12 -0
- package/typings/classes/OptionButton.d.ts +136 -0
- package/typings/classes/PCKPacker.d.ts +27 -0
- package/typings/classes/PackedByteArray.d.ts +327 -0
- package/typings/classes/PackedColorArray.d.ts +125 -0
- package/typings/classes/PackedDataContainer.d.ts +13 -0
- package/typings/classes/PackedDataContainerRef.d.ts +8 -0
- package/typings/classes/PackedFloat32Array.d.ts +140 -0
- package/typings/classes/PackedFloat64Array.d.ts +140 -0
- package/typings/classes/PackedInt32Array.d.ts +127 -0
- package/typings/classes/PackedInt64Array.d.ts +127 -0
- package/typings/classes/PackedScene.d.ts +40 -0
- package/typings/classes/PackedStringArray.d.ts +124 -0
- package/typings/classes/PackedVector2Array.d.ts +139 -0
- package/typings/classes/PackedVector3Array.d.ts +139 -0
- package/typings/classes/PackedVector4Array.d.ts +138 -0
- package/typings/classes/PacketPeer.d.ts +33 -0
- package/typings/classes/PacketPeerDTLS.d.ts +34 -0
- package/typings/classes/PacketPeerExtension.d.ts +9 -0
- package/typings/classes/PacketPeerStream.d.ts +16 -0
- package/typings/classes/PacketPeerUDP.d.ts +61 -0
- package/typings/classes/Panel.d.ts +6 -0
- package/typings/classes/PanelContainer.d.ts +7 -0
- package/typings/classes/PanoramaSkyMaterial.d.ts +18 -0
- package/typings/classes/Parallax2D.d.ts +63 -0
- package/typings/classes/ParallaxBackground.d.ts +37 -0
- package/typings/classes/ParallaxLayer.d.ts +26 -0
- package/typings/classes/ParticleProcessMaterial.d.ts +595 -0
- package/typings/classes/Path2D.d.ts +10 -0
- package/typings/classes/Path3D.d.ts +21 -0
- package/typings/classes/PathFollow2D.d.ts +45 -0
- package/typings/classes/PathFollow3D.d.ts +76 -0
- package/typings/classes/Performance.d.ts +229 -0
- package/typings/classes/PhysicalBone2D.d.ts +44 -0
- package/typings/classes/PhysicalBone3D.d.ts +130 -0
- package/typings/classes/PhysicalBoneSimulator3D.d.ts +29 -0
- package/typings/classes/PhysicalSkyMaterial.d.ts +66 -0
- package/typings/classes/PhysicsBody2D.d.ts +34 -0
- package/typings/classes/PhysicsBody3D.d.ts +51 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +162 -0
- package/typings/classes/PhysicsDirectBodyState2DExtension.d.ts +132 -0
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +165 -0
- package/typings/classes/PhysicsDirectBodyState3DExtension.d.ts +58 -0
- package/typings/classes/PhysicsDirectSpaceState2D.d.ts +58 -0
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +15 -0
- package/typings/classes/PhysicsDirectSpaceState3D.d.ts +62 -0
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +16 -0
- package/typings/classes/PhysicsMaterial.d.ts +27 -0
- package/typings/classes/PhysicsPointQueryParameters2D.d.ts +38 -0
- package/typings/classes/PhysicsPointQueryParameters3D.d.ts +31 -0
- package/typings/classes/PhysicsRayQueryParameters2D.d.ts +46 -0
- package/typings/classes/PhysicsRayQueryParameters3D.d.ts +52 -0
- package/typings/classes/PhysicsServer2D.d.ts +739 -0
- package/typings/classes/PhysicsServer2DExtension.d.ts +354 -0
- package/typings/classes/PhysicsServer2DManager.d.ts +16 -0
- package/typings/classes/PhysicsServer3D.d.ts +1028 -0
- package/typings/classes/PhysicsServer3DExtension.d.ts +204 -0
- package/typings/classes/PhysicsServer3DManager.d.ts +16 -0
- package/typings/classes/PhysicsServer3DRenderingServerHandler.d.ts +26 -0
- package/typings/classes/PhysicsShapeQueryParameters2D.d.ts +51 -0
- package/typings/classes/PhysicsShapeQueryParameters3D.d.ts +51 -0
- package/typings/classes/PhysicsTestMotionParameters2D.d.ts +46 -0
- package/typings/classes/PhysicsTestMotionParameters3D.d.ts +52 -0
- package/typings/classes/PhysicsTestMotionResult2D.d.ts +38 -0
- package/typings/classes/PhysicsTestMotionResult3D.d.ts +54 -0
- package/typings/classes/PinJoint2D.d.ts +34 -0
- package/typings/classes/PinJoint3D.d.ts +35 -0
- package/typings/classes/PlaceholderCubemap.d.ts +6 -0
- package/typings/classes/PlaceholderCubemapArray.d.ts +6 -0
- package/typings/classes/PlaceholderMaterial.d.ts +6 -0
- package/typings/classes/PlaceholderMesh.d.ts +9 -0
- package/typings/classes/PlaceholderTexture2D.d.ts +11 -0
- package/typings/classes/PlaceholderTexture2DArray.d.ts +6 -0
- package/typings/classes/PlaceholderTexture3D.d.ts +10 -0
- package/typings/classes/PlaceholderTextureLayered.d.ts +13 -0
- package/typings/classes/Plane.d.ts +143 -0
- package/typings/classes/PlaneMesh.d.ts +38 -0
- package/typings/classes/PointLight2D.d.ts +22 -0
- package/typings/classes/PointMesh.d.ts +6 -0
- package/typings/classes/Polygon2D.d.ts +101 -0
- package/typings/classes/PolygonOccluder3D.d.ts +13 -0
- package/typings/classes/PolygonPathFinder.d.ts +18 -0
- package/typings/classes/Popup.d.ts +18 -0
- package/typings/classes/PopupMenu.d.ts +349 -0
- package/typings/classes/PopupPanel.d.ts +10 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +47 -0
- package/typings/classes/PrimitiveMesh.d.ts +48 -0
- package/typings/classes/PrismMesh.d.ts +28 -0
- package/typings/classes/ProceduralSkyMaterial.d.ts +68 -0
- package/typings/classes/ProgressBar.d.ts +38 -0
- package/typings/classes/ProjectSettings.d.ts +3818 -0
- package/typings/classes/Projection.d.ts +193 -0
- package/typings/classes/PropertyTweener.d.ts +38 -0
- package/typings/classes/QuadMesh.d.ts +8 -0
- package/typings/classes/QuadOccluder3D.d.ts +10 -0
- package/typings/classes/Quaternion.d.ts +188 -0
- package/typings/classes/RDAttachmentFormat.d.ts +18 -0
- package/typings/classes/RDFramebufferPass.d.ts +33 -0
- package/typings/classes/RDPipelineColorBlendState.d.ts +22 -0
- package/typings/classes/RDPipelineColorBlendStateAttachment.d.ts +61 -0
- package/typings/classes/RDPipelineDepthStencilState.d.ts +102 -0
- package/typings/classes/RDPipelineMultisampleState.d.ts +42 -0
- package/typings/classes/RDPipelineRasterizationState.d.ts +64 -0
- package/typings/classes/RDPipelineSpecializationConstant.d.ts +18 -0
- package/typings/classes/RDSamplerState.d.ts +91 -0
- package/typings/classes/RDShaderFile.d.ts +21 -0
- package/typings/classes/RDShaderSPIRV.d.ts +85 -0
- package/typings/classes/RDShaderSource.d.ts +40 -0
- package/typings/classes/RDTextureFormat.d.ts +62 -0
- package/typings/classes/RDTextureView.d.ts +28 -0
- package/typings/classes/RDUniform.d.ts +23 -0
- package/typings/classes/RDVertexAttribute.d.ts +35 -0
- package/typings/classes/RID.d.ts +65 -0
- package/typings/classes/RandomNumberGenerator.d.ts +45 -0
- package/typings/classes/Range.d.ts +76 -0
- package/typings/classes/RayCast2D.d.ts +90 -0
- package/typings/classes/RayCast3D.d.ts +113 -0
- package/typings/classes/Rect2.d.ts +135 -0
- package/typings/classes/Rect2i.d.ts +127 -0
- package/typings/classes/RectangleShape2D.d.ts +10 -0
- package/typings/classes/RefCounted.d.ts +23 -0
- package/typings/classes/ReferenceRect.d.ts +22 -0
- package/typings/classes/ReflectionProbe.d.ts +118 -0
- package/typings/classes/RemoteTransform2D.d.ts +33 -0
- package/typings/classes/RemoteTransform3D.d.ts +33 -0
- package/typings/classes/RenderData.d.ts +20 -0
- package/typings/classes/RenderDataExtension.d.ts +18 -0
- package/typings/classes/RenderDataRD.d.ts +6 -0
- package/typings/classes/RenderSceneBuffers.d.ts +10 -0
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +48 -0
- package/typings/classes/RenderSceneBuffersExtension.d.ts +16 -0
- package/typings/classes/RenderSceneBuffersRD.d.ts +85 -0
- package/typings/classes/RenderSceneData.d.ts +29 -0
- package/typings/classes/RenderSceneDataExtension.d.ts +20 -0
- package/typings/classes/RenderSceneDataRD.d.ts +6 -0
- package/typings/classes/RenderingDevice.d.ts +2373 -0
- package/typings/classes/RenderingServer.d.ts +3501 -0
- package/typings/classes/Resource.d.ts +130 -0
- package/typings/classes/ResourceFormatLoader.d.ts +73 -0
- package/typings/classes/ResourceFormatSaver.d.ts +26 -0
- package/typings/classes/ResourceImporter.d.ts +18 -0
- package/typings/classes/ResourceImporterBMFont.d.ts +14 -0
- package/typings/classes/ResourceImporterBitMap.d.ts +16 -0
- package/typings/classes/ResourceImporterCSVTranslation.d.ts +23 -0
- package/typings/classes/ResourceImporterDynamicFont.d.ts +96 -0
- package/typings/classes/ResourceImporterImage.d.ts +6 -0
- package/typings/classes/ResourceImporterImageFont.d.ts +46 -0
- package/typings/classes/ResourceImporterLayeredTexture.d.ts +65 -0
- package/typings/classes/ResourceImporterOBJ.d.ts +38 -0
- package/typings/classes/ResourceImporterSVG.d.ts +24 -0
- package/typings/classes/ResourceImporterScene.d.ts +114 -0
- package/typings/classes/ResourceImporterShaderFile.d.ts +6 -0
- package/typings/classes/ResourceImporterTexture.d.ts +188 -0
- package/typings/classes/ResourceImporterTextureAtlas.d.ts +27 -0
- package/typings/classes/ResourceImporterWAV.d.ts +57 -0
- package/typings/classes/ResourceLoader.d.ts +106 -0
- package/typings/classes/ResourcePreloader.d.ts +20 -0
- package/typings/classes/ResourceSaver.d.ts +53 -0
- package/typings/classes/ResourceUID.d.ts +59 -0
- package/typings/classes/RetargetModifier3D.d.ts +51 -0
- package/typings/classes/RibbonTrailMesh.d.ts +42 -0
- package/typings/classes/RichTextEffect.d.ts +10 -0
- package/typings/classes/RichTextLabel.d.ts +524 -0
- package/typings/classes/RigidBody2D.d.ts +280 -0
- package/typings/classes/RigidBody3D.d.ts +271 -0
- package/typings/classes/RootMotionView.d.ts +30 -0
- package/typings/classes/SceneState.d.ts +93 -0
- package/typings/classes/SceneTree.d.ts +257 -0
- package/typings/classes/SceneTreeTimer.d.ts +13 -0
- package/typings/classes/Script.d.ts +64 -0
- package/typings/classes/ScriptBacktrace.d.ts +63 -0
- package/typings/classes/ScriptCreateDialog.d.ts +17 -0
- package/typings/classes/ScriptEditor.d.ts +60 -0
- package/typings/classes/ScriptEditorBase.d.ts +39 -0
- package/typings/classes/ScriptExtension.d.ts +48 -0
- package/typings/classes/ScriptLanguage.d.ts +12 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +110 -0
- package/typings/classes/ScrollBar.d.ts +19 -0
- package/typings/classes/ScrollContainer.d.ts +120 -0
- package/typings/classes/SegmentShape2D.d.ts +14 -0
- package/typings/classes/Semaphore.d.ts +14 -0
- package/typings/classes/SeparationRayShape2D.d.ts +17 -0
- package/typings/classes/SeparationRayShape3D.d.ts +17 -0
- package/typings/classes/Separator.d.ts +6 -0
- package/typings/classes/Shader.d.ts +48 -0
- package/typings/classes/ShaderGlobalsOverride.d.ts +6 -0
- package/typings/classes/ShaderInclude.d.ts +12 -0
- package/typings/classes/ShaderIncludeDB.d.ts +14 -0
- package/typings/classes/ShaderMaterial.d.ts +19 -0
- package/typings/classes/Shape2D.d.ts +44 -0
- package/typings/classes/Shape3D.d.ts +24 -0
- package/typings/classes/ShapeCast2D.d.ts +107 -0
- package/typings/classes/ShapeCast3D.d.ts +116 -0
- package/typings/classes/Shortcut.d.ts +22 -0
- package/typings/classes/Signal.d.ts +86 -0
- package/typings/classes/Skeleton2D.d.ts +35 -0
- package/typings/classes/Skeleton3D.d.ts +225 -0
- package/typings/classes/SkeletonIK3D.d.ts +83 -0
- package/typings/classes/SkeletonModification2D.d.ts +52 -0
- package/typings/classes/SkeletonModification2DCCDIK.d.ts +64 -0
- package/typings/classes/SkeletonModification2DFABRIK.d.ts +40 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +97 -0
- package/typings/classes/SkeletonModification2DLookAt.d.ts +48 -0
- package/typings/classes/SkeletonModification2DPhysicalBones.d.ts +32 -0
- package/typings/classes/SkeletonModification2DStackHolder.d.ts +12 -0
- package/typings/classes/SkeletonModification2DTwoBoneIK.d.ts +57 -0
- package/typings/classes/SkeletonModificationStack2D.d.ts +46 -0
- package/typings/classes/SkeletonModifier3D.d.ts +101 -0
- package/typings/classes/SkeletonProfile.d.ts +119 -0
- package/typings/classes/SkeletonProfileHumanoid.d.ts +10 -0
- package/typings/classes/Skin.d.ts +16 -0
- package/typings/classes/SkinReference.d.ts +15 -0
- package/typings/classes/Sky.d.ts +61 -0
- package/typings/classes/Slider.d.ts +49 -0
- package/typings/classes/SliderJoint3D.d.ts +166 -0
- package/typings/classes/SocketServer.d.ts +14 -0
- package/typings/classes/SoftBody3D.d.ts +136 -0
- package/typings/classes/SphereMesh.d.ts +29 -0
- package/typings/classes/SphereOccluder3D.d.ts +10 -0
- package/typings/classes/SphereShape3D.d.ts +10 -0
- package/typings/classes/SpinBox.d.ts +60 -0
- package/typings/classes/SplineIK3D.d.ts +37 -0
- package/typings/classes/SplitContainer.d.ts +114 -0
- package/typings/classes/SpotLight3D.d.ts +28 -0
- package/typings/classes/SpringArm3D.d.ts +47 -0
- package/typings/classes/SpringBoneCollision3D.d.ts +25 -0
- package/typings/classes/SpringBoneCollisionCapsule3D.d.ts +30 -0
- package/typings/classes/SpringBoneCollisionPlane3D.d.ts +6 -0
- package/typings/classes/SpringBoneCollisionSphere3D.d.ts +14 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +283 -0
- package/typings/classes/Sprite2D.d.ts +88 -0
- package/typings/classes/Sprite3D.d.ts +51 -0
- package/typings/classes/SpriteBase3D.d.ts +147 -0
- package/typings/classes/SpriteFrames.d.ts +57 -0
- package/typings/classes/StandardMaterial3D.d.ts +6 -0
- package/typings/classes/StaticBody2D.d.ts +27 -0
- package/typings/classes/StaticBody3D.d.ts +27 -0
- package/typings/classes/StatusIndicator.d.ts +36 -0
- package/typings/classes/StreamPeer.d.ts +102 -0
- package/typings/classes/StreamPeerBuffer.d.ts +23 -0
- package/typings/classes/StreamPeerExtension.d.ts +10 -0
- package/typings/classes/StreamPeerGZIP.d.ts +21 -0
- package/typings/classes/StreamPeerSocket.d.ts +22 -0
- package/typings/classes/StreamPeerTCP.d.ts +26 -0
- package/typings/classes/StreamPeerTLS.d.ts +40 -0
- package/typings/classes/StreamPeerUDS.d.ts +15 -0
- package/typings/classes/String.d.ts +475 -0
- package/typings/classes/StringName.d.ts +4 -0
- package/typings/classes/StyleBox.d.ts +64 -0
- package/typings/classes/StyleBoxEmpty.d.ts +6 -0
- package/typings/classes/StyleBoxFlat.d.ts +120 -0
- package/typings/classes/StyleBoxLine.d.ts +30 -0
- package/typings/classes/StyleBoxTexture.d.ts +99 -0
- package/typings/classes/SubViewport.d.ts +57 -0
- package/typings/classes/SubViewportContainer.d.ts +33 -0
- package/typings/classes/SubtweenTweener.d.ts +10 -0
- package/typings/classes/SurfaceTool.d.ts +178 -0
- package/typings/classes/SyntaxHighlighter.d.ts +33 -0
- package/typings/classes/SystemFont.d.ts +94 -0
- package/typings/classes/TCPServer.d.ts +17 -0
- package/typings/classes/TLSOptions.d.ts +38 -0
- package/typings/classes/TabBar.d.ts +203 -0
- package/typings/classes/TabContainer.d.ts +184 -0
- package/typings/classes/TextEdit.d.ts +877 -0
- package/typings/classes/TextLine.d.ts +100 -0
- package/typings/classes/TextMesh.d.ts +103 -0
- package/typings/classes/TextParagraph.d.ts +160 -0
- package/typings/classes/TextServer.d.ts +1006 -0
- package/typings/classes/TextServerDummy.d.ts +6 -0
- package/typings/classes/TextServerExtension.d.ts +586 -0
- package/typings/classes/TextServerManager.d.ts +31 -0
- package/typings/classes/Texture.d.ts +6 -0
- package/typings/classes/Texture2D.d.ts +69 -0
- package/typings/classes/Texture2DArray.d.ts +10 -0
- package/typings/classes/Texture2DArrayRD.d.ts +6 -0
- package/typings/classes/Texture2DRD.d.ts +11 -0
- package/typings/classes/Texture3D.d.ts +36 -0
- package/typings/classes/Texture3DRD.d.ts +10 -0
- package/typings/classes/TextureButton.d.ts +80 -0
- package/typings/classes/TextureCubemapArrayRD.d.ts +6 -0
- package/typings/classes/TextureCubemapRD.d.ts +6 -0
- package/typings/classes/TextureLayered.d.ts +46 -0
- package/typings/classes/TextureLayeredRD.d.ts +10 -0
- package/typings/classes/TextureProgressBar.d.ts +120 -0
- package/typings/classes/TextureRect.d.ts +69 -0
- package/typings/classes/Theme.d.ts +335 -0
- package/typings/classes/ThemeDB.d.ts +58 -0
- package/typings/classes/Thread.d.ts +55 -0
- package/typings/classes/TileData.d.ts +155 -0
- package/typings/classes/TileMap.d.ts +303 -0
- package/typings/classes/TileMapLayer.d.ts +244 -0
- package/typings/classes/TileMapPattern.d.ts +26 -0
- package/typings/classes/TileSet.d.ts +348 -0
- package/typings/classes/TileSetAtlasSource.d.ts +160 -0
- package/typings/classes/TileSetScenesCollectionSource.d.ts +37 -0
- package/typings/classes/TileSetSource.d.ts +24 -0
- package/typings/classes/Time.d.ts +149 -0
- package/typings/classes/Timer.d.ts +71 -0
- package/typings/classes/TorusMesh.d.ts +22 -0
- package/typings/classes/TouchScreenButton.d.ts +61 -0
- package/typings/classes/Transform2D.d.ts +207 -0
- package/typings/classes/Transform3D.d.ts +173 -0
- package/typings/classes/Translation.d.ts +51 -0
- package/typings/classes/TranslationDomain.d.ts +115 -0
- package/typings/classes/TranslationServer.d.ts +117 -0
- package/typings/classes/Tree.d.ts +298 -0
- package/typings/classes/TreeItem.d.ts +374 -0
- package/typings/classes/TriangleMesh.d.ts +33 -0
- package/typings/classes/TubeTrailMesh.d.ts +50 -0
- package/typings/classes/Tween.d.ts +218 -0
- package/typings/classes/Tweener.d.ts +11 -0
- package/typings/classes/TwoBoneIK3D.d.ts +87 -0
- package/typings/classes/UDPServer.d.ts +35 -0
- package/typings/classes/UDSServer.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +92 -0
- package/typings/classes/UniformSetCacheRD.d.ts +8 -0
- package/typings/classes/VBoxContainer.d.ts +6 -0
- package/typings/classes/VFlowContainer.d.ts +6 -0
- package/typings/classes/VScrollBar.d.ts +8 -0
- package/typings/classes/VSeparator.d.ts +6 -0
- package/typings/classes/VSlider.d.ts +8 -0
- package/typings/classes/VSplitContainer.d.ts +8 -0
- package/typings/classes/Variant.d.ts +6 -0
- package/typings/classes/Vector2.d.ts +298 -0
- package/typings/classes/Vector2i.d.ts +166 -0
- package/typings/classes/Vector3.d.ts +309 -0
- package/typings/classes/Vector3i.d.ts +172 -0
- package/typings/classes/Vector4.d.ts +216 -0
- package/typings/classes/Vector4i.d.ts +164 -0
- package/typings/classes/VehicleBody3D.d.ts +26 -0
- package/typings/classes/VehicleWheel3D.d.ts +112 -0
- package/typings/classes/VideoStream.d.ts +18 -0
- package/typings/classes/VideoStreamPlayback.d.ts +52 -0
- package/typings/classes/VideoStreamPlayer.d.ts +82 -0
- package/typings/classes/Viewport.d.ts +815 -0
- package/typings/classes/ViewportTexture.d.ts +13 -0
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VisibleOnScreenEnabler2D.d.ts +26 -0
- package/typings/classes/VisibleOnScreenEnabler3D.d.ts +26 -0
- package/typings/classes/VisibleOnScreenNotifier2D.d.ts +27 -0
- package/typings/classes/VisibleOnScreenNotifier3D.d.ts +20 -0
- package/typings/classes/VisualInstance3D.d.ts +53 -0
- package/typings/classes/VisualShader.d.ts +112 -0
- package/typings/classes/VisualShaderNode.d.ts +63 -0
- package/typings/classes/VisualShaderNodeBillboard.d.ts +28 -0
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeClamp.d.ts +26 -0
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +32 -0
- package/typings/classes/VisualShaderNodeColorOp.d.ts +32 -0
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeComment.d.ts +12 -0
- package/typings/classes/VisualShaderNodeCompare.d.ts +68 -0
- package/typings/classes/VisualShaderNodeConstant.d.ts +6 -0
- package/typings/classes/VisualShaderNodeCubemap.d.ts +43 -0
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +10 -0
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +10 -0
- package/typings/classes/VisualShaderNodeCustom.d.ts +122 -0
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +56 -0
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +6 -0
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +6 -0
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +6 -0
- package/typings/classes/VisualShaderNodeExpression.d.ts +12 -0
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +8 -0
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +108 -0
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +36 -0
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +52 -0
- package/typings/classes/VisualShaderNodeFrame.d.ts +35 -0
- package/typings/classes/VisualShaderNodeFresnel.d.ts +6 -0
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +6 -0
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +60 -0
- package/typings/classes/VisualShaderNodeIf.d.ts +8 -0
- package/typings/classes/VisualShaderNodeInput.d.ts +20 -0
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +24 -0
- package/typings/classes/VisualShaderNodeIntOp.d.ts +48 -0
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +58 -0
- package/typings/classes/VisualShaderNodeIs.d.ts +18 -0
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +6 -0
- package/typings/classes/VisualShaderNodeMix.d.ts +28 -0
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +22 -0
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +6 -0
- package/typings/classes/VisualShaderNodeOutput.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParameter.d.ts +32 -0
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +10 -0
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +20 -0
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +22 -0
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +12 -0
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +20 -0
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +10 -0
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +22 -0
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +6 -0
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +6 -0
- package/typings/classes/VisualShaderNodeRemap.d.ts +33 -0
- package/typings/classes/VisualShaderNodeReroute.d.ts +8 -0
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +10 -0
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +6 -0
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +6 -0
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +8 -0
- package/typings/classes/VisualShaderNodeSample3D.d.ts +18 -0
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +6 -0
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +8 -0
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +28 -0
- package/typings/classes/VisualShaderNodeStep.d.ts +28 -0
- package/typings/classes/VisualShaderNodeSwitch.d.ts +30 -0
- package/typings/classes/VisualShaderNodeTexture.d.ts +57 -0
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +12 -0
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +12 -0
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +104 -0
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +18 -0
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +32 -0
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +22 -0
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +20 -0
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +48 -0
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +16 -0
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +22 -0
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVarying.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +20 -0
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +8 -0
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +8 -0
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +84 -0
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +42 -0
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +8 -0
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +8 -0
- package/typings/classes/VoxelGI.d.ts +54 -0
- package/typings/classes/VoxelGIData.d.ts +70 -0
- package/typings/classes/WeakRef.d.ts +12 -0
- package/typings/classes/Window.d.ts +790 -0
- package/typings/classes/WorkerThreadPool.d.ts +55 -0
- package/typings/classes/World2D.d.ts +24 -0
- package/typings/classes/World3D.d.ts +32 -0
- package/typings/classes/WorldBoundaryShape2D.d.ts +19 -0
- package/typings/classes/WorldBoundaryShape3D.d.ts +10 -0
- package/typings/classes/WorldEnvironment.d.ts +22 -0
- package/typings/classes/X509Certificate.d.ts +16 -0
- package/typings/classes/XMLParser.d.ts +74 -0
- package/typings/classes/XRAnchor3D.d.ts +12 -0
- package/typings/classes/XRBodyModifier3D.d.ts +35 -0
- package/typings/classes/XRBodyTracker.d.ts +218 -0
- package/typings/classes/XRCamera3D.d.ts +7 -0
- package/typings/classes/XRController3D.d.ts +39 -0
- package/typings/classes/XRControllerTracker.d.ts +7 -0
- package/typings/classes/XRFaceModifier3D.d.ts +14 -0
- package/typings/classes/XRFaceTracker.d.ts +308 -0
- package/typings/classes/XRHandModifier3D.d.ts +24 -0
- package/typings/classes/XRHandTracker.d.ts +127 -0
- package/typings/classes/XRInterface.d.ts +181 -0
- package/typings/classes/XRInterfaceExtension.d.ts +94 -0
- package/typings/classes/XRNode3D.d.ts +46 -0
- package/typings/classes/XROrigin3D.d.ts +18 -0
- package/typings/classes/XRPose.d.ts +55 -0
- package/typings/classes/XRPositionalTracker.d.ts +64 -0
- package/typings/classes/XRServer.d.ts +130 -0
- package/typings/classes/XRTracker.d.ts +27 -0
- package/typings/classes/XRVRS.d.ts +28 -0
- package/typings/classes/_globals.d.ts +2243 -0
- package/typings/classes/_number-ops.d.ts +19 -0
- package/typings/classes/index.d.ts +915 -0
- package/typings/globals/gd-helpers.d.ts +354 -0
- package/typings/globals/globals.d.ts +511 -0
- package/typings/godot-class-registry.json +61322 -0
- package/typings/index.d.ts +3 -0
- package/typings-overrides/_globals.d.ts +114 -0
- package/typings-overrides/array.d.ts +54 -0
- package/typings-overrides/callable-function.d.ts +92 -0
- package/typings-overrides/class-db.d.ts +19 -0
- package/typings-overrides/dictionary.d.ts +26 -0
- package/typings-overrides/function.d.ts +29 -0
- package/typings-overrides/godot-object.d.ts +32 -0
- package/typings-overrides/node.d.ts +9 -0
- package/typings-overrides/non-nullable.json +117 -0
- package/typings-overrides/packed-scene.d.ts +7 -0
- package/typings-overrides/project-settings.d.ts +73 -0
- package/typings-overrides/property-tweener.d.ts +8 -0
- package/typings-overrides/resource.d.ts +3 -0
- package/typings-overrides/scene-tree.d.ts +54 -0
- package/typings-overrides/signal.d.ts +10 -0
- package/typings-overrides/tween.d.ts +18 -0
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A server interface for low-level 2D physics access. */
|
|
5
|
+
declare interface PhysicsServer2D extends GodotObject {
|
|
6
|
+
/**
|
|
7
|
+
* Adds a shape to the area, with the given local transform. The shape (together with its `transform` and `disabled` properties) is added to an array of shapes, and the shapes of an area are usually referenced by their index in this array.
|
|
8
|
+
*/
|
|
9
|
+
area_add_shape(area: RID, shape: RID, transform?: Transform2D, disabled?: boolean): void;
|
|
10
|
+
/**
|
|
11
|
+
* Attaches the `ObjectID` of a canvas to the area. Use {@link Object.get_instance_id} to get the `ObjectID` of a {@link CanvasLayer}.
|
|
12
|
+
*/
|
|
13
|
+
area_attach_canvas_instance_id(area: RID, id: int): void;
|
|
14
|
+
/**
|
|
15
|
+
* Attaches the `ObjectID` of an {@link Object} to the area. Use {@link Object.get_instance_id} to get the `ObjectID` of a {@link CollisionObject2D}.
|
|
16
|
+
*/
|
|
17
|
+
area_attach_object_instance_id(area: RID, id: int): void;
|
|
18
|
+
/**
|
|
19
|
+
* Removes all shapes from the area. This does not delete the shapes themselves, so they can continue to be used elsewhere or added back later.
|
|
20
|
+
*/
|
|
21
|
+
area_clear_shapes(area: RID): void;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a 2D area object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and `monitorable` set to `false`.
|
|
24
|
+
* Use {@link area_add_shape} to add shapes to it, use {@link area_set_transform} to set its transform, and use {@link area_set_space} to add the area to a space. If you want the area to be detectable use {@link area_set_monitorable}.
|
|
25
|
+
*/
|
|
26
|
+
area_create(): RID;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the `ObjectID` of the canvas attached to the area. Use {@link @GlobalScope.instance_from_id} to retrieve a {@link CanvasLayer} from a nonzero `ObjectID`.
|
|
29
|
+
*/
|
|
30
|
+
area_get_canvas_instance_id(area: RID): int;
|
|
31
|
+
/** Returns the physics layer or layers the area belongs to, as a bitmask. */
|
|
32
|
+
area_get_collision_layer(area: RID): int;
|
|
33
|
+
/** Returns the physics layer or layers the area can contact with, as a bitmask. */
|
|
34
|
+
area_get_collision_mask(area: RID): int;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the `ObjectID` attached to the area. Use {@link @GlobalScope.instance_from_id} to retrieve an {@link Object} from a nonzero `ObjectID`.
|
|
37
|
+
*/
|
|
38
|
+
area_get_object_instance_id(area: RID): int;
|
|
39
|
+
/** Returns the value of the given area parameter. */
|
|
40
|
+
area_get_param(area: RID, param: int): unknown;
|
|
41
|
+
/** Returns the {@link RID} of the shape with the given index in the area's array of shapes. */
|
|
42
|
+
area_get_shape(area: RID, shape_idx: int): RID;
|
|
43
|
+
/** Returns the number of shapes added to the area. */
|
|
44
|
+
area_get_shape_count(area: RID): int;
|
|
45
|
+
/** Returns the local transform matrix of the shape with the given index in the area's array of shapes. */
|
|
46
|
+
area_get_shape_transform(area: RID, shape_idx: int): Transform2D;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the {@link RID} of the space assigned to the area. Returns an empty {@link RID} if no space is assigned.
|
|
49
|
+
*/
|
|
50
|
+
area_get_space(area: RID): RID;
|
|
51
|
+
/** Returns the transform matrix of the area. */
|
|
52
|
+
area_get_transform(area: RID): Transform2D;
|
|
53
|
+
/**
|
|
54
|
+
* Removes the shape with the given index from the area's array of shapes. The shape itself is not deleted, so it can continue to be used elsewhere or added back later. As a result of this operation, the area's shapes which used to have indices higher than `shape_idx` will have their index decreased by one.
|
|
55
|
+
*/
|
|
56
|
+
area_remove_shape(area: RID, shape_idx: int): void;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the area's area monitor callback. This callback will be called when any other (shape of an) area enters or exits (a shape of) the given area, and must take the following five parameters:
|
|
59
|
+
* 1. an integer `status`: either {@link AREA_BODY_ADDED} or {@link AREA_BODY_REMOVED} depending on whether the other area's shape entered or exited the area,
|
|
60
|
+
* 2. an {@link RID} `area_rid`: the {@link RID} of the other area that entered or exited the area,
|
|
61
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the other area,
|
|
62
|
+
* 4. an integer `area_shape_idx`: the index of the shape of the other area that entered or exited the area,
|
|
63
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the other area entered or exited.
|
|
64
|
+
* By counting (or keeping track of) the shapes that enter and exit, it can be determined if an area (with all its shapes) is entering for the first time or exiting for the last time.
|
|
65
|
+
*/
|
|
66
|
+
area_set_area_monitor_callback(area: RID, callback: Callable): void;
|
|
67
|
+
/** Assigns the area to one or many physics layers, via a bitmask. */
|
|
68
|
+
area_set_collision_layer(area: RID, layer: int): void;
|
|
69
|
+
/** Sets which physics layers the area will monitor, via a bitmask. */
|
|
70
|
+
area_set_collision_mask(area: RID, mask: int): void;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the area's body monitor callback. This callback will be called when any other (shape of a) body enters or exits (a shape of) the given area, and must take the following five parameters:
|
|
73
|
+
* 1. an integer `status`: either {@link AREA_BODY_ADDED} or {@link AREA_BODY_REMOVED} depending on whether the other body shape entered or exited the area,
|
|
74
|
+
* 2. an {@link RID} `body_rid`: the {@link RID} of the body that entered or exited the area,
|
|
75
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the body,
|
|
76
|
+
* 4. an integer `body_shape_idx`: the index of the shape of the body that entered or exited the area,
|
|
77
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the body entered or exited.
|
|
78
|
+
* By counting (or keeping track of) the shapes that enter and exit, it can be determined if a body (with all its shapes) is entering for the first time or exiting for the last time.
|
|
79
|
+
*/
|
|
80
|
+
area_set_monitor_callback(area: RID, callback: Callable): void;
|
|
81
|
+
/**
|
|
82
|
+
* Sets whether the area is monitorable or not. If `monitorable` is `true`, the area monitoring callback of other areas will be called when this area enters or exits them.
|
|
83
|
+
*/
|
|
84
|
+
area_set_monitorable(area: RID, monitorable: boolean): void;
|
|
85
|
+
/** Sets the value of the given area parameter. */
|
|
86
|
+
area_set_param(area: RID, param: int, value: unknown): void;
|
|
87
|
+
/**
|
|
88
|
+
* Replaces the area's shape at the given index by another shape, while not affecting the `transform` and `disabled` properties at the same index.
|
|
89
|
+
*/
|
|
90
|
+
area_set_shape(area: RID, shape_idx: int, shape: RID): void;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the disabled property of the area's shape with the given index. If `disabled` is `true`, then the shape will not detect any other shapes entering or exiting it.
|
|
93
|
+
*/
|
|
94
|
+
area_set_shape_disabled(area: RID, shape_idx: int, disabled: boolean): void;
|
|
95
|
+
/** Sets the local transform matrix of the area's shape with the given index. */
|
|
96
|
+
area_set_shape_transform(area: RID, shape_idx: int, transform: Transform2D): void;
|
|
97
|
+
/**
|
|
98
|
+
* Adds the area to the given space, after removing the area from the previously assigned space (if any).
|
|
99
|
+
* **Note:** To remove an area from a space without immediately adding it back elsewhere, use `PhysicsServer2D.area_set_space(area, RID())`.
|
|
100
|
+
*/
|
|
101
|
+
area_set_space(area: RID, space: RID): void;
|
|
102
|
+
/** Sets the transform matrix of the area. */
|
|
103
|
+
area_set_transform(area: RID, transform: Transform2D): void;
|
|
104
|
+
/**
|
|
105
|
+
* Adds `excepted_body` to the body's list of collision exceptions, so that collisions with it are ignored.
|
|
106
|
+
*/
|
|
107
|
+
body_add_collision_exception(body: RID, excepted_body: RID): void;
|
|
108
|
+
/**
|
|
109
|
+
* Adds a constant directional force to the body. The force does not affect rotation. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_force(body, Vector2(0, 0))`.
|
|
110
|
+
* This is equivalent to using {@link body_add_constant_force} at the body's center of mass.
|
|
111
|
+
*/
|
|
112
|
+
body_add_constant_central_force(body: RID, force: Vector2 | Vector2i): void;
|
|
113
|
+
/**
|
|
114
|
+
* Adds a constant positioned force to the body. The force can affect rotation if `position` is different from the body's center of mass. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_force(body, Vector2(0, 0))`.
|
|
115
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
116
|
+
*/
|
|
117
|
+
body_add_constant_force(body: RID, force: Vector2 | Vector2i, position?: Vector2 | Vector2i): void;
|
|
118
|
+
/**
|
|
119
|
+
* Adds a constant rotational force to the body. The force does not affect position. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_torque(body, 0)`.
|
|
120
|
+
*/
|
|
121
|
+
body_add_constant_torque(body: RID, torque: float): void;
|
|
122
|
+
/**
|
|
123
|
+
* Adds a shape to the area, with the given local transform. The shape (together with its `transform` and `disabled` properties) is added to an array of shapes, and the shapes of a body are usually referenced by their index in this array.
|
|
124
|
+
*/
|
|
125
|
+
body_add_shape(body: RID, shape: RID, transform?: Transform2D, disabled?: boolean): void;
|
|
126
|
+
/**
|
|
127
|
+
* Applies a directional force to the body, at the body's center of mass. The force does not affect rotation. A force is time dependent and meant to be applied every physics update.
|
|
128
|
+
* This is equivalent to using {@link body_apply_force} at the body's center of mass.
|
|
129
|
+
*/
|
|
130
|
+
body_apply_central_force(body: RID, force: Vector2 | Vector2i): void;
|
|
131
|
+
/**
|
|
132
|
+
* Applies a directional impulse to the body, at the body's center of mass. The impulse does not affect rotation.
|
|
133
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
134
|
+
* This is equivalent to using {@link body_apply_impulse} at the body's center of mass.
|
|
135
|
+
*/
|
|
136
|
+
body_apply_central_impulse(body: RID, impulse: Vector2 | Vector2i): void;
|
|
137
|
+
/**
|
|
138
|
+
* Applies a positioned force to the body. The force can affect rotation if `position` is different from the body's center of mass. A force is time dependent and meant to be applied every physics update.
|
|
139
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
140
|
+
*/
|
|
141
|
+
body_apply_force(body: RID, force: Vector2 | Vector2i, position?: Vector2 | Vector2i): void;
|
|
142
|
+
/**
|
|
143
|
+
* Applies a positioned impulse to the body. The impulse can affect rotation if `position` is different from the body's center of mass.
|
|
144
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
145
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
146
|
+
*/
|
|
147
|
+
body_apply_impulse(body: RID, impulse: Vector2 | Vector2i, position?: Vector2 | Vector2i): void;
|
|
148
|
+
/**
|
|
149
|
+
* Applies a rotational force to the body. The force does not affect position. A force is time dependent and meant to be applied every physics update.
|
|
150
|
+
*/
|
|
151
|
+
body_apply_torque(body: RID, torque: float): void;
|
|
152
|
+
/**
|
|
153
|
+
* Applies a rotational impulse to the body. The impulse does not affect position.
|
|
154
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
155
|
+
*/
|
|
156
|
+
body_apply_torque_impulse(body: RID, impulse: float): void;
|
|
157
|
+
/**
|
|
158
|
+
* Attaches the `ObjectID` of a canvas to the body. Use {@link Object.get_instance_id} to get the `ObjectID` of a {@link CanvasLayer}.
|
|
159
|
+
*/
|
|
160
|
+
body_attach_canvas_instance_id(body: RID, id: int): void;
|
|
161
|
+
/**
|
|
162
|
+
* Attaches the `ObjectID` of an {@link Object} to the body. Use {@link Object.get_instance_id} to get the `ObjectID` of a {@link CollisionObject2D}.
|
|
163
|
+
*/
|
|
164
|
+
body_attach_object_instance_id(body: RID, id: int): void;
|
|
165
|
+
/**
|
|
166
|
+
* Removes all shapes from the body. This does not delete the shapes themselves, so they can continue to be used elsewhere or added back later.
|
|
167
|
+
*/
|
|
168
|
+
body_clear_shapes(body: RID): void;
|
|
169
|
+
/**
|
|
170
|
+
* Creates a 2D body object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and body mode set to {@link BODY_MODE_RIGID}.
|
|
171
|
+
* Use {@link body_add_shape} to add shapes to it, use {@link body_set_state} to set its transform, and use {@link body_set_space} to add the body to a space.
|
|
172
|
+
*/
|
|
173
|
+
body_create(): RID;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the `ObjectID` of the canvas attached to the body. Use {@link @GlobalScope.instance_from_id} to retrieve a {@link CanvasLayer} from a nonzero `ObjectID`.
|
|
176
|
+
*/
|
|
177
|
+
body_get_canvas_instance_id(body: RID): int;
|
|
178
|
+
/** Returns the physics layer or layers the body belongs to, as a bitmask. */
|
|
179
|
+
body_get_collision_layer(body: RID): int;
|
|
180
|
+
/** Returns the physics layer or layers the body can collide with, as a bitmask. */
|
|
181
|
+
body_get_collision_mask(body: RID): int;
|
|
182
|
+
/**
|
|
183
|
+
* Returns the body's collision priority. This is used in the depenetration phase of {@link body_test_motion}. The higher the priority is, the lower the penetration into the body will be.
|
|
184
|
+
*/
|
|
185
|
+
body_get_collision_priority(body: RID): float;
|
|
186
|
+
/**
|
|
187
|
+
* Returns the body's total constant positional force applied during each physics update.
|
|
188
|
+
* See {@link body_add_constant_force} and {@link body_add_constant_central_force}.
|
|
189
|
+
*/
|
|
190
|
+
body_get_constant_force(body: RID): Vector2;
|
|
191
|
+
/**
|
|
192
|
+
* Returns the body's total constant rotational force applied during each physics update.
|
|
193
|
+
* See {@link body_add_constant_torque}.
|
|
194
|
+
*/
|
|
195
|
+
body_get_constant_torque(body: RID): float;
|
|
196
|
+
/** Returns the body's continuous collision detection mode. */
|
|
197
|
+
body_get_continuous_collision_detection_mode(body: RID): int;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the {@link PhysicsDirectBodyState2D} of the body. Returns `null` if the body is destroyed or not assigned to a space.
|
|
200
|
+
*/
|
|
201
|
+
body_get_direct_state(body: RID): PhysicsDirectBodyState2D | null;
|
|
202
|
+
/**
|
|
203
|
+
* Returns the maximum number of contacts that the body can report. See {@link body_set_max_contacts_reported}.
|
|
204
|
+
*/
|
|
205
|
+
body_get_max_contacts_reported(body: RID): int;
|
|
206
|
+
/** Returns the body's mode. */
|
|
207
|
+
body_get_mode(body: RID): int;
|
|
208
|
+
/**
|
|
209
|
+
* Returns the `ObjectID` attached to the body. Use {@link @GlobalScope.instance_from_id} to retrieve an {@link Object} from a nonzero `ObjectID`.
|
|
210
|
+
*/
|
|
211
|
+
body_get_object_instance_id(body: RID): int;
|
|
212
|
+
/** Returns the value of the given body parameter. */
|
|
213
|
+
body_get_param(body: RID, param: int): unknown;
|
|
214
|
+
/** Returns the {@link RID} of the shape with the given index in the body's array of shapes. */
|
|
215
|
+
body_get_shape(body: RID, shape_idx: int): RID;
|
|
216
|
+
/** Returns the number of shapes added to the body. */
|
|
217
|
+
body_get_shape_count(body: RID): int;
|
|
218
|
+
/** Returns the local transform matrix of the shape with the given index in the area's array of shapes. */
|
|
219
|
+
body_get_shape_transform(body: RID, shape_idx: int): Transform2D;
|
|
220
|
+
/**
|
|
221
|
+
* Returns the {@link RID} of the space assigned to the body. Returns an empty {@link RID} if no space is assigned.
|
|
222
|
+
*/
|
|
223
|
+
body_get_space(body: RID): RID;
|
|
224
|
+
/** Returns the value of the given state of the body. */
|
|
225
|
+
body_get_state(body: RID, state: int): unknown;
|
|
226
|
+
/**
|
|
227
|
+
* Returns `true` if the body is omitting the standard force integration. See {@link body_set_omit_force_integration}.
|
|
228
|
+
*/
|
|
229
|
+
body_is_omitting_force_integration(body: RID): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Removes `excepted_body` from the body's list of collision exceptions, so that collisions with it are no longer ignored.
|
|
232
|
+
*/
|
|
233
|
+
body_remove_collision_exception(body: RID, excepted_body: RID): void;
|
|
234
|
+
/**
|
|
235
|
+
* Removes the shape with the given index from the body's array of shapes. The shape itself is not deleted, so it can continue to be used elsewhere or added back later. As a result of this operation, the body's shapes which used to have indices higher than `shape_idx` will have their index decreased by one.
|
|
236
|
+
*/
|
|
237
|
+
body_remove_shape(body: RID, shape_idx: int): void;
|
|
238
|
+
/**
|
|
239
|
+
* Restores the default inertia and center of mass of the body based on its shapes. This undoes any custom values previously set using {@link body_set_param}.
|
|
240
|
+
*/
|
|
241
|
+
body_reset_mass_properties(body: RID): void;
|
|
242
|
+
/**
|
|
243
|
+
* Modifies the body's linear velocity so that its projection to the axis `axis_velocity.normalized()` is exactly `axis_velocity.length()`. This is useful for jumping behavior.
|
|
244
|
+
*/
|
|
245
|
+
body_set_axis_velocity(body: RID, axis_velocity: Vector2 | Vector2i): void;
|
|
246
|
+
/** Sets the physics layer or layers the body belongs to, via a bitmask. */
|
|
247
|
+
body_set_collision_layer(body: RID, layer: int): void;
|
|
248
|
+
/** Sets the physics layer or layers the body can collide with, via a bitmask. */
|
|
249
|
+
body_set_collision_mask(body: RID, mask: int): void;
|
|
250
|
+
/**
|
|
251
|
+
* Sets the body's collision priority. This is used in the depenetration phase of {@link body_test_motion}. The higher the priority is, the lower the penetration into the body will be.
|
|
252
|
+
*/
|
|
253
|
+
body_set_collision_priority(body: RID, priority: float): void;
|
|
254
|
+
/**
|
|
255
|
+
* Sets the body's total constant positional force applied during each physics update.
|
|
256
|
+
* See {@link body_add_constant_force} and {@link body_add_constant_central_force}.
|
|
257
|
+
*/
|
|
258
|
+
body_set_constant_force(body: RID, force: Vector2 | Vector2i): void;
|
|
259
|
+
/**
|
|
260
|
+
* Sets the body's total constant rotational force applied during each physics update.
|
|
261
|
+
* See {@link body_add_constant_torque}.
|
|
262
|
+
*/
|
|
263
|
+
body_set_constant_torque(body: RID, torque: float): void;
|
|
264
|
+
/**
|
|
265
|
+
* Sets the continuous collision detection mode.
|
|
266
|
+
* Continuous collision detection tries to predict where a moving body would collide in between physics updates, instead of moving it and correcting its movement if it collided.
|
|
267
|
+
*/
|
|
268
|
+
body_set_continuous_collision_detection_mode(body: RID, mode: int): void;
|
|
269
|
+
/**
|
|
270
|
+
* Sets the body's custom force integration callback function to `callable`. Use an empty {@link Callable} ([code skip-lint]Callable()[/code]) to clear the custom callback.
|
|
271
|
+
* The function `callable` will be called every physics tick, before the standard force integration (see {@link body_set_omit_force_integration}). It can be used for example to update the body's linear and angular velocity based on contact with other bodies.
|
|
272
|
+
* If `userdata` is not `null`, the function `callable` must take the following two parameters:
|
|
273
|
+
* 1. `state`: a {@link PhysicsDirectBodyState2D} used to retrieve and modify the body's state,
|
|
274
|
+
* 2. [code skip-lint]userdata[/code]: a {@link Variant}; its value will be the `userdata` passed into this method.
|
|
275
|
+
* If `userdata` is `null`, then `callable` must take only the `state` parameter.
|
|
276
|
+
*/
|
|
277
|
+
body_set_force_integration_callback(body: RID, callable: Callable, userdata?: unknown): void;
|
|
278
|
+
/**
|
|
279
|
+
* Sets the maximum number of contacts that the body can report. If `amount` is greater than zero, then the body will keep track of at most this many contacts with other bodies.
|
|
280
|
+
*/
|
|
281
|
+
body_set_max_contacts_reported(body: RID, amount: int): void;
|
|
282
|
+
/** Sets the body's mode. */
|
|
283
|
+
body_set_mode(body: RID, mode: int): void;
|
|
284
|
+
/**
|
|
285
|
+
* Sets whether the body omits the standard force integration. If `enable` is `true`, the body will not automatically use applied forces, torques, and damping to update the body's linear and angular velocity. In this case, {@link body_set_force_integration_callback} can be used to manually update the linear and angular velocity instead.
|
|
286
|
+
* This method is called when the property {@link RigidBody2D.custom_integrator} is set.
|
|
287
|
+
*/
|
|
288
|
+
body_set_omit_force_integration(body: RID, enable: boolean): void;
|
|
289
|
+
/** Sets the value of the given body parameter. */
|
|
290
|
+
body_set_param(body: RID, param: int, value: unknown): void;
|
|
291
|
+
/**
|
|
292
|
+
* Replaces the body's shape at the given index by another shape, while not affecting the `transform`, `disabled`, and one-way collision properties at the same index.
|
|
293
|
+
*/
|
|
294
|
+
body_set_shape(body: RID, shape_idx: int, shape: RID): void;
|
|
295
|
+
/**
|
|
296
|
+
* Sets the one-way collision properties of the body's shape with the given index. If `enable` is `true`, the one-way collision direction given by `direction` in the shape's local space (that is `body_get_shape_transform(body, shape_idx).basis_xform(direction).normalized()` in the body's local space) will be used to ignore collisions with the shape in the opposite direction, and to ensure depenetration of kinematic bodies happens in this direction.
|
|
297
|
+
*/
|
|
298
|
+
body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float, direction?: Vector2 | Vector2i): void;
|
|
299
|
+
/**
|
|
300
|
+
* Sets the disabled property of the body's shape with the given index. If `disabled` is `true`, then the shape will be ignored in all collision detection.
|
|
301
|
+
*/
|
|
302
|
+
body_set_shape_disabled(body: RID, shape_idx: int, disabled: boolean): void;
|
|
303
|
+
/** Sets the local transform matrix of the body's shape with the given index. */
|
|
304
|
+
body_set_shape_transform(body: RID, shape_idx: int, transform: Transform2D): void;
|
|
305
|
+
/**
|
|
306
|
+
* Adds the body to the given space, after removing the body from the previously assigned space (if any). If the body's mode is set to {@link BODY_MODE_RIGID}, then adding the body to a space will have the following additional effects:
|
|
307
|
+
* - If the parameter {@link BODY_PARAM_CENTER_OF_MASS} has never been set explicitly, then the value of that parameter will be recalculated based on the body's shapes.
|
|
308
|
+
* - If the parameter {@link BODY_PARAM_INERTIA} is set to a value `<= 0.0`, then the value of that parameter will be recalculated based on the body's shapes, mass, and center of mass.
|
|
309
|
+
* **Note:** To remove a body from a space without immediately adding it back elsewhere, use `PhysicsServer2D.body_set_space(body, RID())`.
|
|
310
|
+
*/
|
|
311
|
+
body_set_space(body: RID, space: RID): void;
|
|
312
|
+
/**
|
|
313
|
+
* Sets the value of a body's state.
|
|
314
|
+
* **Note:** The state change doesn't take effect immediately. The state will change on the next physics frame.
|
|
315
|
+
*/
|
|
316
|
+
body_set_state(body: RID, state: int, value: unknown): void;
|
|
317
|
+
/**
|
|
318
|
+
* Sets the body's state synchronization callback function to `callable`. Use an empty {@link Callable} ([code skip-lint]Callable()[/code]) to clear the callback.
|
|
319
|
+
* The function `callable` will be called every physics frame, assuming that the body was active during the previous physics tick, and can be used to fetch the latest state from the physics server.
|
|
320
|
+
* The function `callable` must take the following parameters:
|
|
321
|
+
* 1. `state`: a {@link PhysicsDirectBodyState2D}, used to retrieve the body's state.
|
|
322
|
+
*/
|
|
323
|
+
body_set_state_sync_callback(body: RID, callable: Callable): void;
|
|
324
|
+
/**
|
|
325
|
+
* Returns `true` if a collision would result from moving the body along a motion vector from a given point in space. See {@link PhysicsTestMotionParameters2D} for the available motion parameters. Optionally a {@link PhysicsTestMotionResult2D} object can be passed, which will be used to store the information about the resulting collision.
|
|
326
|
+
*/
|
|
327
|
+
body_test_motion(body: RID, parameters: PhysicsTestMotionParameters2D, result?: PhysicsTestMotionResult2D): boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Creates a 2D capsule shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the capsule's height and radius.
|
|
330
|
+
*/
|
|
331
|
+
capsule_shape_create(): RID;
|
|
332
|
+
/**
|
|
333
|
+
* Creates a 2D circle shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the circle's radius.
|
|
334
|
+
*/
|
|
335
|
+
circle_shape_create(): RID;
|
|
336
|
+
/**
|
|
337
|
+
* Creates a 2D concave polygon shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the concave polygon's segments.
|
|
338
|
+
*/
|
|
339
|
+
concave_polygon_shape_create(): RID;
|
|
340
|
+
/**
|
|
341
|
+
* Creates a 2D convex polygon shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the convex polygon's points.
|
|
342
|
+
*/
|
|
343
|
+
convex_polygon_shape_create(): RID;
|
|
344
|
+
/** Returns the value of the given damped spring joint parameter. */
|
|
345
|
+
damped_spring_joint_get_param(joint: RID, param: int): float;
|
|
346
|
+
/** Sets the value of the given damped spring joint parameter. */
|
|
347
|
+
damped_spring_joint_set_param(joint: RID, param: int, value: float): void;
|
|
348
|
+
/**
|
|
349
|
+
* Destroys any of the objects created by PhysicsServer2D. If the {@link RID} passed is not one of the objects that can be created by PhysicsServer2D, an error will be printed to the console.
|
|
350
|
+
*/
|
|
351
|
+
free_rid(rid: RID): void;
|
|
352
|
+
/** Returns the value of a physics engine state specified by `process_info`. */
|
|
353
|
+
get_process_info(process_info: int): int;
|
|
354
|
+
/**
|
|
355
|
+
* Destroys the joint with the given {@link RID}, creates a new uninitialized joint, and makes the {@link RID} refer to this new joint.
|
|
356
|
+
*/
|
|
357
|
+
joint_clear(joint: RID): void;
|
|
358
|
+
/**
|
|
359
|
+
* Creates a 2D joint in the physics server, and returns the {@link RID} that identifies it. To set the joint type, use {@link joint_make_damped_spring}, {@link joint_make_groove} or {@link joint_make_pin}. Use {@link joint_set_param} to set generic joint parameters.
|
|
360
|
+
*/
|
|
361
|
+
joint_create(): RID;
|
|
362
|
+
/** Sets whether the bodies attached to the {@link Joint2D} will collide with each other. */
|
|
363
|
+
joint_disable_collisions_between_bodies(joint: RID, disable: boolean): void;
|
|
364
|
+
/** Returns the value of the given joint parameter. */
|
|
365
|
+
joint_get_param(joint: RID, param: int): float;
|
|
366
|
+
/** Returns the joint's type. */
|
|
367
|
+
joint_get_type(joint: RID): int;
|
|
368
|
+
/** Returns whether the bodies attached to the {@link Joint2D} will collide with each other. */
|
|
369
|
+
joint_is_disabled_collisions_between_bodies(joint: RID): boolean;
|
|
370
|
+
/**
|
|
371
|
+
* Makes the joint a damped spring joint, attached at the point `anchor_a` (given in global coordinates) on the body `body_a` and at the point `anchor_b` (given in global coordinates) on the body `body_b`. To set the parameters which are specific to the damped spring, see {@link damped_spring_joint_set_param}.
|
|
372
|
+
*/
|
|
373
|
+
joint_make_damped_spring(joint: RID, anchor_a: Vector2 | Vector2i, anchor_b: Vector2 | Vector2i, body_a: RID, body_b?: RID): void;
|
|
374
|
+
/** Makes the joint a groove joint. */
|
|
375
|
+
joint_make_groove(joint: RID, groove1_a: Vector2 | Vector2i, groove2_a: Vector2 | Vector2i, anchor_b: Vector2 | Vector2i, body_a?: RID, body_b?: RID): void;
|
|
376
|
+
/**
|
|
377
|
+
* Makes the joint a pin joint. If `body_b` is an empty {@link RID}, then `body_a` is pinned to the point `anchor` (given in global coordinates); otherwise, `body_a` is pinned to `body_b` at the point `anchor` (given in global coordinates). To set the parameters which are specific to the pin joint, see {@link pin_joint_set_param}.
|
|
378
|
+
*/
|
|
379
|
+
joint_make_pin(joint: RID, anchor: Vector2 | Vector2i, body_a: RID, body_b?: RID): void;
|
|
380
|
+
/** Sets the value of the given joint parameter. */
|
|
381
|
+
joint_set_param(joint: RID, param: int, value: float): void;
|
|
382
|
+
/** Gets a pin joint flag. */
|
|
383
|
+
pin_joint_get_flag(joint: RID, flag: int): boolean;
|
|
384
|
+
/** Returns the value of a pin joint parameter. */
|
|
385
|
+
pin_joint_get_param(joint: RID, param: int): float;
|
|
386
|
+
/** Sets a pin joint flag. */
|
|
387
|
+
pin_joint_set_flag(joint: RID, flag: int, enabled: boolean): void;
|
|
388
|
+
/** Sets a pin joint parameter. */
|
|
389
|
+
pin_joint_set_param(joint: RID, param: int, value: float): void;
|
|
390
|
+
/**
|
|
391
|
+
* Creates a 2D rectangle shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the rectangle's half-extents.
|
|
392
|
+
*/
|
|
393
|
+
rectangle_shape_create(): RID;
|
|
394
|
+
/**
|
|
395
|
+
* Creates a 2D segment shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the segment's start and end points.
|
|
396
|
+
*/
|
|
397
|
+
segment_shape_create(): RID;
|
|
398
|
+
/**
|
|
399
|
+
* Creates a 2D separation ray shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the shape's `length` and `slide_on_slope` properties.
|
|
400
|
+
*/
|
|
401
|
+
separation_ray_shape_create(): RID;
|
|
402
|
+
/**
|
|
403
|
+
* Activates or deactivates the 2D physics server. If `active` is `false`, then the physics server will not do anything in its physics step.
|
|
404
|
+
*/
|
|
405
|
+
set_active(active: boolean): void;
|
|
406
|
+
/**
|
|
407
|
+
* Returns the shape data that defines the configuration of the shape, such as the half-extents of a rectangle or the segments of a concave shape. See {@link shape_set_data} for the precise format of this data in each case.
|
|
408
|
+
*/
|
|
409
|
+
shape_get_data(shape: RID): unknown;
|
|
410
|
+
/** Returns the shape's type. */
|
|
411
|
+
shape_get_type(shape: RID): int;
|
|
412
|
+
/**
|
|
413
|
+
* Sets the shape data that defines the configuration of the shape. The `data` to be passed depends on the shape's type (see {@link shape_get_type}):
|
|
414
|
+
* - {@link SHAPE_WORLD_BOUNDARY}: an array of length two containing a {@link Vector2} `normal` direction and a [float] distance `d`,
|
|
415
|
+
* - {@link SHAPE_SEPARATION_RAY}: a dictionary containing the key `length` with a [float] value and the key `slide_on_slope` with a [bool] value,
|
|
416
|
+
* - {@link SHAPE_SEGMENT}: a {@link Rect2} `rect` containing the first point of the segment in `rect.position` and the second point of the segment in `rect.size`,
|
|
417
|
+
* - {@link SHAPE_CIRCLE}: a [float] `radius`,
|
|
418
|
+
* - {@link SHAPE_RECTANGLE}: a {@link Vector2} `half_extents`,
|
|
419
|
+
* - {@link SHAPE_CAPSULE}: an array of length two (or a {@link Vector2}) containing a [float] `height` and a [float] `radius`,
|
|
420
|
+
* - {@link SHAPE_CONVEX_POLYGON}: either a {@link PackedVector2Array} of points defining a convex polygon in counterclockwise order (the clockwise outward normal of each segment formed by consecutive points is calculated internally), or a {@link PackedFloat32Array} of length divisible by four so that every 4-tuple of [float]s contains the coordinates of a point followed by the coordinates of the clockwise outward normal vector to the segment between the current point and the next point,
|
|
421
|
+
* - {@link SHAPE_CONCAVE_POLYGON}: a {@link PackedVector2Array} of length divisible by two (each pair of points forms one segment).
|
|
422
|
+
* **Warning:** In the case of {@link SHAPE_CONVEX_POLYGON}, this method does not check if the points supplied actually form a convex polygon (unlike the {@link CollisionPolygon2D.polygon} property).
|
|
423
|
+
*/
|
|
424
|
+
shape_set_data(shape: RID, data: unknown): void;
|
|
425
|
+
/**
|
|
426
|
+
* Creates a 2D space in the physics server, and returns the {@link RID} that identifies it. A space contains bodies and areas, and controls the stepping of the physics simulation of the objects in it.
|
|
427
|
+
*/
|
|
428
|
+
space_create(): RID;
|
|
429
|
+
/**
|
|
430
|
+
* Returns the state of a space, a {@link PhysicsDirectSpaceState2D}. This object can be used for collision/intersection queries.
|
|
431
|
+
*/
|
|
432
|
+
space_get_direct_state(space: RID): PhysicsDirectSpaceState2D | null;
|
|
433
|
+
/** Returns the value of the given space parameter. */
|
|
434
|
+
space_get_param(space: RID, param: int): float;
|
|
435
|
+
/** Returns `true` if the space is active. */
|
|
436
|
+
space_is_active(space: RID): boolean;
|
|
437
|
+
/**
|
|
438
|
+
* Activates or deactivates the space. If `active` is `false`, then the physics server will not do anything with this space in its physics step.
|
|
439
|
+
*/
|
|
440
|
+
space_set_active(space: RID, active: boolean): void;
|
|
441
|
+
/** Sets the value of the given space parameter. */
|
|
442
|
+
space_set_param(space: RID, param: int, value: float): void;
|
|
443
|
+
/**
|
|
444
|
+
* Creates a 2D world boundary shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the shape's normal direction and distance properties.
|
|
445
|
+
*/
|
|
446
|
+
world_boundary_shape_create(): RID;
|
|
447
|
+
|
|
448
|
+
// enum SpaceParameter
|
|
449
|
+
/**
|
|
450
|
+
* Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contact_recycle_radius}.
|
|
451
|
+
*/
|
|
452
|
+
readonly SPACE_PARAM_CONTACT_RECYCLE_RADIUS: int;
|
|
453
|
+
/**
|
|
454
|
+
* Constant to set/get the maximum distance a shape can be from another before they are considered separated and the contact is discarded. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contact_max_separation}.
|
|
455
|
+
*/
|
|
456
|
+
readonly SPACE_PARAM_CONTACT_MAX_SEPARATION: int;
|
|
457
|
+
/**
|
|
458
|
+
* Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contact_max_allowed_penetration}.
|
|
459
|
+
*/
|
|
460
|
+
readonly SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION: int;
|
|
461
|
+
/**
|
|
462
|
+
* Constant to set/get the default solver bias for all physics contacts. A solver bias is a factor controlling how much two objects "rebound", after overlapping, to avoid leaving them in that state because of numerical imprecision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/default_contact_bias}.
|
|
463
|
+
*/
|
|
464
|
+
readonly SPACE_PARAM_CONTACT_DEFAULT_BIAS: int;
|
|
465
|
+
/**
|
|
466
|
+
* Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. The default value of this parameter is {@link ProjectSettings.physics/2d/sleep_threshold_linear}.
|
|
467
|
+
*/
|
|
468
|
+
readonly SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
469
|
+
/**
|
|
470
|
+
* Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. The default value of this parameter is {@link ProjectSettings.physics/2d/sleep_threshold_angular}.
|
|
471
|
+
*/
|
|
472
|
+
readonly SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
473
|
+
/**
|
|
474
|
+
* Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. The default value of this parameter is {@link ProjectSettings.physics/2d/time_before_sleep}.
|
|
475
|
+
*/
|
|
476
|
+
readonly SPACE_PARAM_BODY_TIME_TO_SLEEP: int;
|
|
477
|
+
/**
|
|
478
|
+
* Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/default_constraint_bias}.
|
|
479
|
+
*/
|
|
480
|
+
readonly SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS: int;
|
|
481
|
+
/**
|
|
482
|
+
* Constant to set/get the number of solver iterations for all contacts and constraints. The greater the number of iterations, the more accurate the collisions will be. However, a greater number of iterations requires more CPU power, which can decrease performance. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/solver_iterations}.
|
|
483
|
+
*/
|
|
484
|
+
readonly SPACE_PARAM_SOLVER_ITERATIONS: int;
|
|
485
|
+
// enum ShapeType
|
|
486
|
+
/**
|
|
487
|
+
* This is the constant for creating world boundary shapes. A world boundary shape is an *infinite* line with an origin point, and a normal. Thus, it can be used for front/behind checks.
|
|
488
|
+
*/
|
|
489
|
+
readonly SHAPE_WORLD_BOUNDARY: int;
|
|
490
|
+
/**
|
|
491
|
+
* This is the constant for creating separation ray shapes. A separation ray is defined by a length and separates itself from what is touching its far endpoint. Useful for character controllers.
|
|
492
|
+
*/
|
|
493
|
+
readonly SHAPE_SEPARATION_RAY: int;
|
|
494
|
+
/**
|
|
495
|
+
* This is the constant for creating segment shapes. A segment shape is a *finite* line from a point A to a point B. It can be checked for intersections.
|
|
496
|
+
*/
|
|
497
|
+
readonly SHAPE_SEGMENT: int;
|
|
498
|
+
/**
|
|
499
|
+
* This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks.
|
|
500
|
+
*/
|
|
501
|
+
readonly SHAPE_CIRCLE: int;
|
|
502
|
+
/**
|
|
503
|
+
* This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks.
|
|
504
|
+
*/
|
|
505
|
+
readonly SHAPE_RECTANGLE: int;
|
|
506
|
+
/**
|
|
507
|
+
* This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks.
|
|
508
|
+
*/
|
|
509
|
+
readonly SHAPE_CAPSULE: int;
|
|
510
|
+
/**
|
|
511
|
+
* This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks.
|
|
512
|
+
*/
|
|
513
|
+
readonly SHAPE_CONVEX_POLYGON: int;
|
|
514
|
+
/**
|
|
515
|
+
* This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks.
|
|
516
|
+
*/
|
|
517
|
+
readonly SHAPE_CONCAVE_POLYGON: int;
|
|
518
|
+
/**
|
|
519
|
+
* This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|
|
520
|
+
*/
|
|
521
|
+
readonly SHAPE_CUSTOM: int;
|
|
522
|
+
// enum AreaParameter
|
|
523
|
+
/**
|
|
524
|
+
* Constant to set/get gravity override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
525
|
+
*/
|
|
526
|
+
readonly AREA_PARAM_GRAVITY_OVERRIDE_MODE: int;
|
|
527
|
+
/** Constant to set/get gravity strength in an area. The default value of this parameter is `9.80665`. */
|
|
528
|
+
readonly AREA_PARAM_GRAVITY: int;
|
|
529
|
+
/**
|
|
530
|
+
* Constant to set/get gravity vector/center in an area. The default value of this parameter is `Vector2(0, -1)`.
|
|
531
|
+
*/
|
|
532
|
+
readonly AREA_PARAM_GRAVITY_VECTOR: int;
|
|
533
|
+
/**
|
|
534
|
+
* Constant to set/get whether the gravity vector of an area is a direction, or a center point. The default value of this parameter is `false`.
|
|
535
|
+
*/
|
|
536
|
+
readonly AREA_PARAM_GRAVITY_IS_POINT: int;
|
|
537
|
+
/**
|
|
538
|
+
* Constant to set/get the distance at which the gravity strength is equal to the gravity controlled by {@link AREA_PARAM_GRAVITY}. For example, on a planet 100 pixels in radius with a surface gravity of 4.0 px/s², set the gravity to 4.0 and the unit distance to 100.0. The gravity will have falloff according to the inverse square law, so in the example, at 200 pixels from the center the gravity will be 1.0 px/s² (twice the distance, 1/4th the gravity), at 50 pixels it will be 16.0 px/s² (half the distance, 4x the gravity), and so on.
|
|
539
|
+
* The above is true only when the unit distance is a positive number. When the unit distance is set to 0.0, the gravity will be constant regardless of distance. The default value of this parameter is `0.0`.
|
|
540
|
+
*/
|
|
541
|
+
readonly AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE: int;
|
|
542
|
+
/**
|
|
543
|
+
* Constant to set/get linear damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
544
|
+
*/
|
|
545
|
+
readonly AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE: int;
|
|
546
|
+
/**
|
|
547
|
+
* Constant to set/get the linear damping factor of an area. The default value of this parameter is `0.1`.
|
|
548
|
+
*/
|
|
549
|
+
readonly AREA_PARAM_LINEAR_DAMP: int;
|
|
550
|
+
/**
|
|
551
|
+
* Constant to set/get angular damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
552
|
+
*/
|
|
553
|
+
readonly AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE: int;
|
|
554
|
+
/**
|
|
555
|
+
* Constant to set/get the angular damping factor of an area. The default value of this parameter is `1.0`.
|
|
556
|
+
*/
|
|
557
|
+
readonly AREA_PARAM_ANGULAR_DAMP: int;
|
|
558
|
+
/**
|
|
559
|
+
* Constant to set/get the priority (order of processing) of an area. The default value of this parameter is `0`.
|
|
560
|
+
*/
|
|
561
|
+
readonly AREA_PARAM_PRIORITY: int;
|
|
562
|
+
// enum AreaSpaceOverrideMode
|
|
563
|
+
/**
|
|
564
|
+
* This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
|
565
|
+
*/
|
|
566
|
+
readonly AREA_SPACE_OVERRIDE_DISABLED: int;
|
|
567
|
+
/**
|
|
568
|
+
* This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
|
569
|
+
*/
|
|
570
|
+
readonly AREA_SPACE_OVERRIDE_COMBINE: int;
|
|
571
|
+
/**
|
|
572
|
+
* This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
|
573
|
+
*/
|
|
574
|
+
readonly AREA_SPACE_OVERRIDE_COMBINE_REPLACE: int;
|
|
575
|
+
/**
|
|
576
|
+
* This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
577
|
+
*/
|
|
578
|
+
readonly AREA_SPACE_OVERRIDE_REPLACE: int;
|
|
579
|
+
/**
|
|
580
|
+
* This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
581
|
+
*/
|
|
582
|
+
readonly AREA_SPACE_OVERRIDE_REPLACE_COMBINE: int;
|
|
583
|
+
// enum BodyMode
|
|
584
|
+
/**
|
|
585
|
+
* Constant for static bodies. In this mode, a body can be only moved by user code and doesn't collide with other bodies along its path when moved.
|
|
586
|
+
*/
|
|
587
|
+
readonly BODY_MODE_STATIC: int;
|
|
588
|
+
/**
|
|
589
|
+
* Constant for kinematic bodies. In this mode, a body can be only moved by user code and collides with other bodies along its path.
|
|
590
|
+
*/
|
|
591
|
+
readonly BODY_MODE_KINEMATIC: int;
|
|
592
|
+
/**
|
|
593
|
+
* Constant for rigid bodies. In this mode, a body can be pushed by other bodies and has forces applied.
|
|
594
|
+
*/
|
|
595
|
+
readonly BODY_MODE_RIGID: int;
|
|
596
|
+
/**
|
|
597
|
+
* Constant for linear rigid bodies. In this mode, a body can not rotate, and only its linear velocity is affected by external forces.
|
|
598
|
+
*/
|
|
599
|
+
readonly BODY_MODE_RIGID_LINEAR: int;
|
|
600
|
+
// enum BodyParameter
|
|
601
|
+
/** Constant to set/get a body's bounce factor. The default value of this parameter is `0.0`. */
|
|
602
|
+
readonly BODY_PARAM_BOUNCE: int;
|
|
603
|
+
/** Constant to set/get a body's friction. The default value of this parameter is `1.0`. */
|
|
604
|
+
readonly BODY_PARAM_FRICTION: int;
|
|
605
|
+
/**
|
|
606
|
+
* Constant to set/get a body's mass. The default value of this parameter is `1.0`. If the body's mode is set to {@link BODY_MODE_RIGID}, then setting this parameter will have the following additional effects:
|
|
607
|
+
* - If the parameter {@link BODY_PARAM_CENTER_OF_MASS} has never been set explicitly, then the value of that parameter will be recalculated based on the body's shapes.
|
|
608
|
+
* - If the parameter {@link BODY_PARAM_INERTIA} is set to a value `<= 0.0`, then the value of that parameter will be recalculated based on the body's shapes, mass, and center of mass.
|
|
609
|
+
*/
|
|
610
|
+
readonly BODY_PARAM_MASS: int;
|
|
611
|
+
/**
|
|
612
|
+
* Constant to set/get a body's inertia. The default value of this parameter is `0.0`. If the body's inertia is set to a value `<= 0.0`, then the inertia will be recalculated based on the body's shapes, mass, and center of mass.
|
|
613
|
+
*/
|
|
614
|
+
readonly BODY_PARAM_INERTIA: int;
|
|
615
|
+
/**
|
|
616
|
+
* Constant to set/get a body's center of mass position in the body's local coordinate system. The default value of this parameter is `Vector2(0, 0)`. If this parameter is never set explicitly, then it is recalculated based on the body's shapes when setting the parameter {@link BODY_PARAM_MASS} or when calling {@link body_set_space}.
|
|
617
|
+
*/
|
|
618
|
+
readonly BODY_PARAM_CENTER_OF_MASS: int;
|
|
619
|
+
/** Constant to set/get a body's gravity multiplier. The default value of this parameter is `1.0`. */
|
|
620
|
+
readonly BODY_PARAM_GRAVITY_SCALE: int;
|
|
621
|
+
/**
|
|
622
|
+
* Constant to set/get a body's linear damping mode. See {@link BodyDampMode} for possible values. The default value of this parameter is {@link BODY_DAMP_MODE_COMBINE}.
|
|
623
|
+
*/
|
|
624
|
+
readonly BODY_PARAM_LINEAR_DAMP_MODE: int;
|
|
625
|
+
/**
|
|
626
|
+
* Constant to set/get a body's angular damping mode. See {@link BodyDampMode} for possible values. The default value of this parameter is {@link BODY_DAMP_MODE_COMBINE}.
|
|
627
|
+
*/
|
|
628
|
+
readonly BODY_PARAM_ANGULAR_DAMP_MODE: int;
|
|
629
|
+
/** Constant to set/get a body's linear damping factor. The default value of this parameter is `0.0`. */
|
|
630
|
+
readonly BODY_PARAM_LINEAR_DAMP: int;
|
|
631
|
+
/** Constant to set/get a body's angular damping factor. The default value of this parameter is `0.0`. */
|
|
632
|
+
readonly BODY_PARAM_ANGULAR_DAMP: int;
|
|
633
|
+
/** Represents the size of the {@link BodyParameter} enum. */
|
|
634
|
+
readonly BODY_PARAM_MAX: int;
|
|
635
|
+
// enum BodyDampMode
|
|
636
|
+
/** The body's damping value is added to any value set in areas or the default value. */
|
|
637
|
+
readonly BODY_DAMP_MODE_COMBINE: int;
|
|
638
|
+
/** The body's damping value replaces any value set in areas or the default value. */
|
|
639
|
+
readonly BODY_DAMP_MODE_REPLACE: int;
|
|
640
|
+
// enum BodyState
|
|
641
|
+
/** Constant to set/get the current transform matrix of the body. */
|
|
642
|
+
readonly BODY_STATE_TRANSFORM: int;
|
|
643
|
+
/** Constant to set/get the current linear velocity of the body. */
|
|
644
|
+
readonly BODY_STATE_LINEAR_VELOCITY: int;
|
|
645
|
+
/** Constant to set/get the current angular velocity of the body. */
|
|
646
|
+
readonly BODY_STATE_ANGULAR_VELOCITY: int;
|
|
647
|
+
/** Constant to sleep/wake up a body, or to get whether it is sleeping. */
|
|
648
|
+
readonly BODY_STATE_SLEEPING: int;
|
|
649
|
+
/** Constant to set/get whether the body can sleep. */
|
|
650
|
+
readonly BODY_STATE_CAN_SLEEP: int;
|
|
651
|
+
// enum JointType
|
|
652
|
+
/** Constant to create pin joints. */
|
|
653
|
+
readonly JOINT_TYPE_PIN: int;
|
|
654
|
+
/** Constant to create groove joints. */
|
|
655
|
+
readonly JOINT_TYPE_GROOVE: int;
|
|
656
|
+
/** Constant to create damped spring joints. */
|
|
657
|
+
readonly JOINT_TYPE_DAMPED_SPRING: int;
|
|
658
|
+
/** Represents the size of the {@link JointType} enum. */
|
|
659
|
+
readonly JOINT_TYPE_MAX: int;
|
|
660
|
+
// enum JointParam
|
|
661
|
+
/**
|
|
662
|
+
* Constant to set/get how fast the joint pulls the bodies back to satisfy the joint constraint. The lower the value, the more the two bodies can pull on the joint. The default value of this parameter is `0.0`.
|
|
663
|
+
* **Note:** In Godot Physics, this parameter is only used for pin joints and groove joints.
|
|
664
|
+
*/
|
|
665
|
+
readonly JOINT_PARAM_BIAS: int;
|
|
666
|
+
/**
|
|
667
|
+
* Constant to set/get the maximum speed with which the joint can apply corrections. The default value of this parameter is `3.40282e+38`.
|
|
668
|
+
* **Note:** In Godot Physics, this parameter is only used for groove joints.
|
|
669
|
+
*/
|
|
670
|
+
readonly JOINT_PARAM_MAX_BIAS: int;
|
|
671
|
+
/**
|
|
672
|
+
* Constant to set/get the maximum force that the joint can use to act on the two bodies. The default value of this parameter is `3.40282e+38`.
|
|
673
|
+
* **Note:** In Godot Physics, this parameter is only used for groove joints.
|
|
674
|
+
*/
|
|
675
|
+
readonly JOINT_PARAM_MAX_FORCE: int;
|
|
676
|
+
// enum PinJointParam
|
|
677
|
+
/**
|
|
678
|
+
* Constant to set/get a how much the bond of the pin joint can flex. The default value of this parameter is `0.0`.
|
|
679
|
+
*/
|
|
680
|
+
readonly PIN_JOINT_SOFTNESS: int;
|
|
681
|
+
/** The maximum rotation around the pin. */
|
|
682
|
+
readonly PIN_JOINT_LIMIT_UPPER: int;
|
|
683
|
+
/** The minimum rotation around the pin. */
|
|
684
|
+
readonly PIN_JOINT_LIMIT_LOWER: int;
|
|
685
|
+
/** Target speed for the motor. In radians per second. */
|
|
686
|
+
readonly PIN_JOINT_MOTOR_TARGET_VELOCITY: int;
|
|
687
|
+
// enum PinJointFlag
|
|
688
|
+
/** If `true`, the pin has a maximum and a minimum rotation. */
|
|
689
|
+
readonly PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED: int;
|
|
690
|
+
/** If `true`, a motor turns the pin. */
|
|
691
|
+
readonly PIN_JOINT_FLAG_MOTOR_ENABLED: int;
|
|
692
|
+
// enum DampedSpringParam
|
|
693
|
+
/**
|
|
694
|
+
* Sets the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. The default value of this parameter is the distance between the joint's anchor points.
|
|
695
|
+
*/
|
|
696
|
+
readonly DAMPED_SPRING_REST_LENGTH: int;
|
|
697
|
+
/**
|
|
698
|
+
* Sets the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. The default value of this parameter is `20.0`.
|
|
699
|
+
*/
|
|
700
|
+
readonly DAMPED_SPRING_STIFFNESS: int;
|
|
701
|
+
/**
|
|
702
|
+
* Sets the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). The default value of this parameter is `1.5`.
|
|
703
|
+
*/
|
|
704
|
+
readonly DAMPED_SPRING_DAMPING: int;
|
|
705
|
+
// enum CCDMode
|
|
706
|
+
/**
|
|
707
|
+
* Disables continuous collision detection. This is the fastest way to detect body collisions, but it can miss small and/or fast-moving objects.
|
|
708
|
+
*/
|
|
709
|
+
readonly CCD_MODE_DISABLED: int;
|
|
710
|
+
/**
|
|
711
|
+
* Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise.
|
|
712
|
+
*/
|
|
713
|
+
readonly CCD_MODE_CAST_RAY: int;
|
|
714
|
+
/**
|
|
715
|
+
* Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise.
|
|
716
|
+
*/
|
|
717
|
+
readonly CCD_MODE_CAST_SHAPE: int;
|
|
718
|
+
// enum AreaBodyStatus
|
|
719
|
+
/**
|
|
720
|
+
* The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
|
721
|
+
*/
|
|
722
|
+
readonly AREA_BODY_ADDED: int;
|
|
723
|
+
/**
|
|
724
|
+
* The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
|
725
|
+
*/
|
|
726
|
+
readonly AREA_BODY_REMOVED: int;
|
|
727
|
+
// enum ProcessInfo
|
|
728
|
+
/** Constant to get the number of objects that are not sleeping. */
|
|
729
|
+
readonly INFO_ACTIVE_OBJECTS: int;
|
|
730
|
+
/** Constant to get the number of possible collisions. */
|
|
731
|
+
readonly INFO_COLLISION_PAIRS: int;
|
|
732
|
+
/** Constant to get the number of space regions where a collision could occur. */
|
|
733
|
+
readonly INFO_ISLAND_COUNT: int;
|
|
734
|
+
}
|
|
735
|
+
declare var PhysicsServer2D: PhysicsServer2D & {
|
|
736
|
+
new(): PhysicsServer2D;
|
|
737
|
+
readonly prototype: PhysicsServer2D;
|
|
738
|
+
};
|
|
739
|
+
|