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,1028 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A server interface for low-level 3D physics access. */
|
|
5
|
+
declare interface PhysicsServer3D extends GodotObject {
|
|
6
|
+
/**
|
|
7
|
+
* Adds a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.
|
|
8
|
+
*/
|
|
9
|
+
area_add_shape(area: RID, shape: RID, transform?: Transform3D | Projection, disabled?: boolean): void;
|
|
10
|
+
/** Assigns the area to a descendant of {@link Object}, so it can exist in the node tree. */
|
|
11
|
+
area_attach_object_instance_id(area: RID, id: int): void;
|
|
12
|
+
/** Removes all shapes from an area. It does not delete the shapes, so they can be reassigned later. */
|
|
13
|
+
area_clear_shapes(area: RID): void;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a 3D 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`.
|
|
16
|
+
* 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}.
|
|
17
|
+
*/
|
|
18
|
+
area_create(): RID;
|
|
19
|
+
/** Returns the physics layer or layers an area belongs to. */
|
|
20
|
+
area_get_collision_layer(area: RID): int;
|
|
21
|
+
/** Returns the physics layer or layers an area can contact with. */
|
|
22
|
+
area_get_collision_mask(area: RID): int;
|
|
23
|
+
/** Gets the instance ID of the object the area is assigned to. */
|
|
24
|
+
area_get_object_instance_id(area: RID): int;
|
|
25
|
+
/**
|
|
26
|
+
* Returns an area parameter value. A list of available parameters is on the {@link AreaParameter} constants.
|
|
27
|
+
*/
|
|
28
|
+
area_get_param(area: RID, param: int): unknown;
|
|
29
|
+
/** Returns the {@link RID} of the nth shape of an area. */
|
|
30
|
+
area_get_shape(area: RID, shape_idx: int): RID;
|
|
31
|
+
/** Returns the number of shapes assigned to an area. */
|
|
32
|
+
area_get_shape_count(area: RID): int;
|
|
33
|
+
/** Returns the transform matrix of a shape within an area. */
|
|
34
|
+
area_get_shape_transform(area: RID, shape_idx: int): Transform3D;
|
|
35
|
+
/** Returns the space assigned to the area. */
|
|
36
|
+
area_get_space(area: RID): RID;
|
|
37
|
+
/** Returns the transform matrix for an area. */
|
|
38
|
+
area_get_transform(area: RID): Transform3D;
|
|
39
|
+
/** Removes a shape from an area. It does not delete the shape, so it can be reassigned later. */
|
|
40
|
+
area_remove_shape(area: RID, shape_idx: int): void;
|
|
41
|
+
/**
|
|
42
|
+
* 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:
|
|
43
|
+
* 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,
|
|
44
|
+
* 2. an {@link RID} `area_rid`: the {@link RID} of the other area that entered or exited the area,
|
|
45
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the other area,
|
|
46
|
+
* 4. an integer `area_shape_idx`: the index of the shape of the other area that entered or exited the area,
|
|
47
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the other area entered or exited.
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
area_set_area_monitor_callback(area: RID, callback: Callable): void;
|
|
51
|
+
/** Assigns the area to one or many physics layers. */
|
|
52
|
+
area_set_collision_layer(area: RID, layer: int): void;
|
|
53
|
+
/** Sets which physics layers the area will monitor. */
|
|
54
|
+
area_set_collision_mask(area: RID, mask: int): void;
|
|
55
|
+
/**
|
|
56
|
+
* 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:
|
|
57
|
+
* 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,
|
|
58
|
+
* 2. an {@link RID} `body_rid`: the {@link RID} of the body that entered or exited the area,
|
|
59
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the body,
|
|
60
|
+
* 4. an integer `body_shape_idx`: the index of the shape of the body that entered or exited the area,
|
|
61
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the body entered or exited.
|
|
62
|
+
* 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.
|
|
63
|
+
*/
|
|
64
|
+
area_set_monitor_callback(area: RID, callback: Callable): void;
|
|
65
|
+
area_set_monitorable(area: RID, monitorable: boolean): void;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the value for an area parameter. A list of available parameters is on the {@link AreaParameter} constants.
|
|
68
|
+
*/
|
|
69
|
+
area_set_param(area: RID, param: int, value: unknown): void;
|
|
70
|
+
/** Sets object pickable with rays. */
|
|
71
|
+
area_set_ray_pickable(area: RID, enable: boolean): void;
|
|
72
|
+
/**
|
|
73
|
+
* Substitutes a given area shape by another. The old shape is selected by its index, the new one by its {@link RID}.
|
|
74
|
+
*/
|
|
75
|
+
area_set_shape(area: RID, shape_idx: int, shape: RID): void;
|
|
76
|
+
area_set_shape_disabled(area: RID, shape_idx: int, disabled: boolean): void;
|
|
77
|
+
/** Sets the transform matrix for an area shape. */
|
|
78
|
+
area_set_shape_transform(area: RID, shape_idx: int, transform: Transform3D | Projection): void;
|
|
79
|
+
/** Assigns a space to the area. */
|
|
80
|
+
area_set_space(area: RID, space: RID): void;
|
|
81
|
+
/** Sets the transform matrix for an area. */
|
|
82
|
+
area_set_transform(area: RID, transform: Transform3D | Projection): void;
|
|
83
|
+
/** Adds a body to the list of bodies exempt from collisions. */
|
|
84
|
+
body_add_collision_exception(body: RID, excepted_body: RID): void;
|
|
85
|
+
/**
|
|
86
|
+
* Adds a constant directional force without affecting rotation that keeps being applied over time until cleared with `body_set_constant_force(body, Vector3(0, 0, 0))`.
|
|
87
|
+
* This is equivalent to using {@link body_add_constant_force} at the body's center of mass.
|
|
88
|
+
*/
|
|
89
|
+
body_add_constant_central_force(body: RID, force: Vector3 | Vector3i): void;
|
|
90
|
+
/**
|
|
91
|
+
* Adds a constant positioned force to the body that keeps being applied over time until cleared with `body_set_constant_force(body, Vector3(0, 0, 0))`.
|
|
92
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
93
|
+
*/
|
|
94
|
+
body_add_constant_force(body: RID, force: Vector3 | Vector3i, position?: Vector3 | Vector3i): void;
|
|
95
|
+
/**
|
|
96
|
+
* Adds a constant rotational force without affecting position that keeps being applied over time until cleared with `body_set_constant_torque(body, Vector3(0, 0, 0))`.
|
|
97
|
+
*/
|
|
98
|
+
body_add_constant_torque(body: RID, torque: Vector3 | Vector3i): void;
|
|
99
|
+
/**
|
|
100
|
+
* Adds a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.
|
|
101
|
+
*/
|
|
102
|
+
body_add_shape(body: RID, shape: RID, transform?: Transform3D | Projection, disabled?: boolean): void;
|
|
103
|
+
/**
|
|
104
|
+
* Applies a directional force without affecting rotation. A force is time dependent and meant to be applied every physics update.
|
|
105
|
+
* This is equivalent to using {@link body_apply_force} at the body's center of mass.
|
|
106
|
+
*/
|
|
107
|
+
body_apply_central_force(body: RID, force: Vector3 | Vector3i): void;
|
|
108
|
+
/**
|
|
109
|
+
* Applies a directional impulse without affecting rotation.
|
|
110
|
+
* 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).
|
|
111
|
+
* This is equivalent to using {@link body_apply_impulse} at the body's center of mass.
|
|
112
|
+
*/
|
|
113
|
+
body_apply_central_impulse(body: RID, impulse: Vector3 | Vector3i): void;
|
|
114
|
+
/**
|
|
115
|
+
* Applies a positioned force to the body. A force is time dependent and meant to be applied every physics update.
|
|
116
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
117
|
+
*/
|
|
118
|
+
body_apply_force(body: RID, force: Vector3 | Vector3i, position?: Vector3 | Vector3i): void;
|
|
119
|
+
/**
|
|
120
|
+
* Applies a positioned impulse to the body.
|
|
121
|
+
* 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).
|
|
122
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
123
|
+
*/
|
|
124
|
+
body_apply_impulse(body: RID, impulse: Vector3 | Vector3i, position?: Vector3 | Vector3i): void;
|
|
125
|
+
/**
|
|
126
|
+
* Applies a rotational force without affecting position. A force is time dependent and meant to be applied every physics update.
|
|
127
|
+
*/
|
|
128
|
+
body_apply_torque(body: RID, torque: Vector3 | Vector3i): void;
|
|
129
|
+
/**
|
|
130
|
+
* Applies a rotational impulse to the body without affecting the position.
|
|
131
|
+
* 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).
|
|
132
|
+
*/
|
|
133
|
+
body_apply_torque_impulse(body: RID, impulse: Vector3 | Vector3i): void;
|
|
134
|
+
/** Assigns the area to a descendant of {@link Object}, so it can exist in the node tree. */
|
|
135
|
+
body_attach_object_instance_id(body: RID, id: int): void;
|
|
136
|
+
/** Removes all shapes from a body. */
|
|
137
|
+
body_clear_shapes(body: RID): void;
|
|
138
|
+
/**
|
|
139
|
+
* Creates a 3D 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}.
|
|
140
|
+
* 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.
|
|
141
|
+
*/
|
|
142
|
+
body_create(): RID;
|
|
143
|
+
/** Returns the physics layer or layers a body belongs to. */
|
|
144
|
+
body_get_collision_layer(body: RID): int;
|
|
145
|
+
/** Returns the physics layer or layers a body can collide with. */
|
|
146
|
+
body_get_collision_mask(body: RID): int;
|
|
147
|
+
/** Returns the body's collision priority. */
|
|
148
|
+
body_get_collision_priority(body: RID): float;
|
|
149
|
+
/**
|
|
150
|
+
* Returns the body's total constant positional forces applied during each physics update.
|
|
151
|
+
* See {@link body_add_constant_force} and {@link body_add_constant_central_force}.
|
|
152
|
+
*/
|
|
153
|
+
body_get_constant_force(body: RID): Vector3;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the body's total constant rotational forces applied during each physics update.
|
|
156
|
+
* See {@link body_add_constant_torque}.
|
|
157
|
+
*/
|
|
158
|
+
body_get_constant_torque(body: RID): Vector3;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the {@link PhysicsDirectBodyState3D} of the body. Returns `null` if the body is destroyed or removed from the physics space.
|
|
161
|
+
*/
|
|
162
|
+
body_get_direct_state(body: RID): PhysicsDirectBodyState3D | null;
|
|
163
|
+
/** Returns the maximum contacts that can be reported. See {@link body_set_max_contacts_reported}. */
|
|
164
|
+
body_get_max_contacts_reported(body: RID): int;
|
|
165
|
+
/** Returns the body mode. */
|
|
166
|
+
body_get_mode(body: RID): int;
|
|
167
|
+
/** Gets the instance ID of the object the area is assigned to. */
|
|
168
|
+
body_get_object_instance_id(body: RID): int;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the value of a body parameter. A list of available parameters is on the {@link BodyParameter} constants.
|
|
171
|
+
*/
|
|
172
|
+
body_get_param(body: RID, param: int): unknown;
|
|
173
|
+
/** Returns the {@link RID} of the nth shape of a body. */
|
|
174
|
+
body_get_shape(body: RID, shape_idx: int): RID;
|
|
175
|
+
/** Returns the number of shapes assigned to a body. */
|
|
176
|
+
body_get_shape_count(body: RID): int;
|
|
177
|
+
/** Returns the transform matrix of a body shape. */
|
|
178
|
+
body_get_shape_transform(body: RID, shape_idx: int): Transform3D;
|
|
179
|
+
/** Returns the {@link RID} of the space assigned to a body. */
|
|
180
|
+
body_get_space(body: RID): RID;
|
|
181
|
+
/** Returns a body state. */
|
|
182
|
+
body_get_state(body: RID, state: int): unknown;
|
|
183
|
+
body_is_axis_locked(body: RID, axis: int): boolean;
|
|
184
|
+
/** If `true`, the continuous collision detection mode is enabled. */
|
|
185
|
+
body_is_continuous_collision_detection_enabled(body: RID): boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Returns `true` if the body is omitting the standard force integration. See {@link body_set_omit_force_integration}.
|
|
188
|
+
*/
|
|
189
|
+
body_is_omitting_force_integration(body: RID): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Removes a body from the list of bodies exempt from collisions.
|
|
192
|
+
* Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.
|
|
193
|
+
*/
|
|
194
|
+
body_remove_collision_exception(body: RID, excepted_body: RID): void;
|
|
195
|
+
/** Removes a shape from a body. The shape is not deleted, so it can be reused afterwards. */
|
|
196
|
+
body_remove_shape(body: RID, shape_idx: int): void;
|
|
197
|
+
/**
|
|
198
|
+
* Restores the default inertia and center of mass based on shapes to cancel any custom values previously set using {@link body_set_param}.
|
|
199
|
+
*/
|
|
200
|
+
body_reset_mass_properties(body: RID): void;
|
|
201
|
+
body_set_axis_lock(body: RID, axis: int, lock: boolean): void;
|
|
202
|
+
/**
|
|
203
|
+
* Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior.
|
|
204
|
+
*/
|
|
205
|
+
body_set_axis_velocity(body: RID, axis_velocity: Vector3 | Vector3i): void;
|
|
206
|
+
/** Sets the physics layer or layers a body belongs to. */
|
|
207
|
+
body_set_collision_layer(body: RID, layer: int): void;
|
|
208
|
+
/** Sets the physics layer or layers a body can collide with. */
|
|
209
|
+
body_set_collision_mask(body: RID, mask: int): void;
|
|
210
|
+
/** Sets the body's collision priority. */
|
|
211
|
+
body_set_collision_priority(body: RID, priority: float): void;
|
|
212
|
+
/**
|
|
213
|
+
* Sets the body's total constant positional forces applied during each physics update.
|
|
214
|
+
* See {@link body_add_constant_force} and {@link body_add_constant_central_force}.
|
|
215
|
+
*/
|
|
216
|
+
body_set_constant_force(body: RID, force: Vector3 | Vector3i): void;
|
|
217
|
+
/**
|
|
218
|
+
* Sets the body's total constant rotational forces applied during each physics update.
|
|
219
|
+
* See {@link body_add_constant_torque}.
|
|
220
|
+
*/
|
|
221
|
+
body_set_constant_torque(body: RID, torque: Vector3 | Vector3i): void;
|
|
222
|
+
/**
|
|
223
|
+
* If `true`, the continuous collision detection mode is enabled.
|
|
224
|
+
* Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.
|
|
225
|
+
*/
|
|
226
|
+
body_set_enable_continuous_collision_detection(body: RID, enable: boolean): void;
|
|
227
|
+
/**
|
|
228
|
+
* 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.
|
|
229
|
+
* 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.
|
|
230
|
+
* If `userdata` is not `null`, the function `callable` must take the following two parameters:
|
|
231
|
+
* 1. `state`: a {@link PhysicsDirectBodyState3D}, used to retrieve and modify the body's state,
|
|
232
|
+
* 2. [code skip-lint]userdata[/code]: a {@link Variant}; its value will be the `userdata` passed into this method.
|
|
233
|
+
* If `userdata` is `null`, then `callable` must take only the `state` parameter.
|
|
234
|
+
*/
|
|
235
|
+
body_set_force_integration_callback(body: RID, callable: Callable, userdata?: unknown): void;
|
|
236
|
+
/**
|
|
237
|
+
* Sets the maximum contacts to report. Bodies can keep a log of the contacts with other bodies. This is enabled by setting the maximum number of contacts reported to a number greater than 0.
|
|
238
|
+
*/
|
|
239
|
+
body_set_max_contacts_reported(body: RID, amount: int): void;
|
|
240
|
+
/** Sets the body mode. */
|
|
241
|
+
body_set_mode(body: RID, mode: int): void;
|
|
242
|
+
/**
|
|
243
|
+
* 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.
|
|
244
|
+
* This method is called when the property {@link RigidBody3D.custom_integrator} is set.
|
|
245
|
+
*/
|
|
246
|
+
body_set_omit_force_integration(body: RID, enable: boolean): void;
|
|
247
|
+
/** Sets a body parameter. A list of available parameters is on the {@link BodyParameter} constants. */
|
|
248
|
+
body_set_param(body: RID, param: int, value: unknown): void;
|
|
249
|
+
/** Sets the body pickable with rays if `enable` is set. */
|
|
250
|
+
body_set_ray_pickable(body: RID, enable: boolean): void;
|
|
251
|
+
/**
|
|
252
|
+
* Substitutes a given body shape by another. The old shape is selected by its index, the new one by its {@link RID}.
|
|
253
|
+
*/
|
|
254
|
+
body_set_shape(body: RID, shape_idx: int, shape: RID): void;
|
|
255
|
+
body_set_shape_disabled(body: RID, shape_idx: int, disabled: boolean): void;
|
|
256
|
+
/** Sets the transform matrix for a body shape. */
|
|
257
|
+
body_set_shape_transform(body: RID, shape_idx: int, transform: Transform3D | Projection): void;
|
|
258
|
+
/** Assigns a space to the body (see {@link space_create}). */
|
|
259
|
+
body_set_space(body: RID, space: RID): void;
|
|
260
|
+
/** Sets a body state. */
|
|
261
|
+
body_set_state(body: RID, state: int, value: unknown): void;
|
|
262
|
+
/**
|
|
263
|
+
* Sets the body's state synchronization callback function to `callable`. Use an empty {@link Callable} ([code skip-lint]Callable()[/code]) to clear the callback.
|
|
264
|
+
* 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.
|
|
265
|
+
* The function `callable` must take the following parameters:
|
|
266
|
+
* 1. `state`: a {@link PhysicsDirectBodyState3D}, used to retrieve the body's state.
|
|
267
|
+
*/
|
|
268
|
+
body_set_state_sync_callback(body: RID, callable: Callable): void;
|
|
269
|
+
/**
|
|
270
|
+
* Returns `true` if a collision would result from moving along a motion vector from a given point in space. {@link PhysicsTestMotionParameters3D} is passed to set motion parameters. {@link PhysicsTestMotionResult3D} can be passed to return additional information.
|
|
271
|
+
*/
|
|
272
|
+
body_test_motion(body: RID, parameters: PhysicsTestMotionParameters3D, result?: PhysicsTestMotionResult3D): boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Creates a 3D box shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the box's half-extents.
|
|
275
|
+
*/
|
|
276
|
+
box_shape_create(): RID;
|
|
277
|
+
/**
|
|
278
|
+
* Creates a 3D 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.
|
|
279
|
+
*/
|
|
280
|
+
capsule_shape_create(): RID;
|
|
281
|
+
/**
|
|
282
|
+
* Creates a 3D 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 triangles.
|
|
283
|
+
*/
|
|
284
|
+
concave_polygon_shape_create(): RID;
|
|
285
|
+
/** Gets a cone twist joint parameter. */
|
|
286
|
+
cone_twist_joint_get_param(joint: RID, param: int): float;
|
|
287
|
+
/** Sets a cone twist joint parameter. */
|
|
288
|
+
cone_twist_joint_set_param(joint: RID, param: int, value: float): void;
|
|
289
|
+
/**
|
|
290
|
+
* Creates a 3D 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.
|
|
291
|
+
*/
|
|
292
|
+
convex_polygon_shape_create(): RID;
|
|
293
|
+
/**
|
|
294
|
+
* Creates a custom shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the shape's data.
|
|
295
|
+
* **Note:** Custom shapes are not supported by the built-in physics servers, so calling this method always produces an error when using Godot Physics or Jolt Physics. Custom physics servers implemented as GDExtensions may support a custom shape.
|
|
296
|
+
*/
|
|
297
|
+
custom_shape_create(): RID;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a 3D cylinder shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the cylinder's height and radius.
|
|
300
|
+
*/
|
|
301
|
+
cylinder_shape_create(): RID;
|
|
302
|
+
/**
|
|
303
|
+
* Destroys any of the objects created by PhysicsServer3D. If the {@link RID} passed is not one of the objects that can be created by PhysicsServer3D, an error will be sent to the console.
|
|
304
|
+
*/
|
|
305
|
+
free_rid(rid: RID): void;
|
|
306
|
+
/** Returns the value of a generic 6DOF joint flag. */
|
|
307
|
+
generic_6dof_joint_get_flag(joint: RID, axis: int, flag: int): boolean;
|
|
308
|
+
/** Returns the value of a generic 6DOF joint parameter. */
|
|
309
|
+
generic_6dof_joint_get_param(joint: RID, axis: int, param: int): float;
|
|
310
|
+
/** Sets the value of a given generic 6DOF joint flag. */
|
|
311
|
+
generic_6dof_joint_set_flag(joint: RID, axis: int, flag: int, enable: boolean): void;
|
|
312
|
+
/** Sets the value of a given generic 6DOF joint parameter. */
|
|
313
|
+
generic_6dof_joint_set_param(joint: RID, axis: int, param: int, value: float): void;
|
|
314
|
+
/** Returns the value of a physics engine state specified by `process_info`. */
|
|
315
|
+
get_process_info(process_info: int): int;
|
|
316
|
+
/**
|
|
317
|
+
* Creates a 3D heightmap shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the heightmap's data.
|
|
318
|
+
*/
|
|
319
|
+
heightmap_shape_create(): RID;
|
|
320
|
+
/** Gets a hinge joint flag. */
|
|
321
|
+
hinge_joint_get_flag(joint: RID, flag: int): boolean;
|
|
322
|
+
/** Gets a hinge joint parameter. */
|
|
323
|
+
hinge_joint_get_param(joint: RID, param: int): float;
|
|
324
|
+
/** Sets a hinge joint flag. */
|
|
325
|
+
hinge_joint_set_flag(joint: RID, flag: int, enabled: boolean): void;
|
|
326
|
+
/** Sets a hinge joint parameter. */
|
|
327
|
+
hinge_joint_set_param(joint: RID, param: int, value: float): void;
|
|
328
|
+
joint_clear(joint: RID): void;
|
|
329
|
+
joint_create(): RID;
|
|
330
|
+
/** Sets whether the bodies attached to the {@link Joint3D} will collide with each other. */
|
|
331
|
+
joint_disable_collisions_between_bodies(joint: RID, disable: boolean): void;
|
|
332
|
+
/**
|
|
333
|
+
* Gets the priority value of the Joint3D.
|
|
334
|
+
* **Note:** Only supported when using GodotPhysics3D. This method always returns `1` when using Jolt Physics, as it does not support joint solver priority.
|
|
335
|
+
*/
|
|
336
|
+
joint_get_solver_priority(joint: RID): int;
|
|
337
|
+
/** Returns the type of the Joint3D. */
|
|
338
|
+
joint_get_type(joint: RID): int;
|
|
339
|
+
/** Returns whether the bodies attached to the {@link Joint3D} will collide with each other. */
|
|
340
|
+
joint_is_disabled_collisions_between_bodies(joint: RID): boolean;
|
|
341
|
+
joint_make_cone_twist(joint: RID, body_A: RID, local_ref_A: Transform3D | Projection, body_B: RID, local_ref_B: Transform3D | Projection): void;
|
|
342
|
+
/**
|
|
343
|
+
* Make the joint a generic six degrees of freedom (6DOF) joint. Use {@link generic_6dof_joint_set_flag} and {@link generic_6dof_joint_set_param} to set the joint's flags and parameters respectively.
|
|
344
|
+
*/
|
|
345
|
+
joint_make_generic_6dof(joint: RID, body_A: RID, local_ref_A: Transform3D | Projection, body_B: RID, local_ref_B: Transform3D | Projection): void;
|
|
346
|
+
joint_make_hinge(joint: RID, body_A: RID, hinge_A: Transform3D | Projection, body_B: RID, hinge_B: Transform3D | Projection): void;
|
|
347
|
+
joint_make_pin(joint: RID, body_A: RID, local_A: Vector3 | Vector3i, body_B: RID, local_B: Vector3 | Vector3i): void;
|
|
348
|
+
joint_make_slider(joint: RID, body_A: RID, local_ref_A: Transform3D | Projection, body_B: RID, local_ref_B: Transform3D | Projection): void;
|
|
349
|
+
/**
|
|
350
|
+
* Sets the priority value of the Joint3D.
|
|
351
|
+
* **Note:** Only supported when using GodotPhysics3D. This method has no effect when using Jolt Physics, as it does not support joint solver priority.
|
|
352
|
+
*/
|
|
353
|
+
joint_set_solver_priority(joint: RID, priority: int): void;
|
|
354
|
+
/** Returns position of the joint in the local space of body a of the joint. */
|
|
355
|
+
pin_joint_get_local_a(joint: RID): Vector3;
|
|
356
|
+
/** Returns position of the joint in the local space of body b of the joint. */
|
|
357
|
+
pin_joint_get_local_b(joint: RID): Vector3;
|
|
358
|
+
/** Gets a pin joint parameter. */
|
|
359
|
+
pin_joint_get_param(joint: RID, param: int): float;
|
|
360
|
+
/** Sets position of the joint in the local space of body a of the joint. */
|
|
361
|
+
pin_joint_set_local_a(joint: RID, local_A: Vector3 | Vector3i): void;
|
|
362
|
+
/** Sets position of the joint in the local space of body b of the joint. */
|
|
363
|
+
pin_joint_set_local_b(joint: RID, local_B: Vector3 | Vector3i): void;
|
|
364
|
+
/** Sets a pin joint parameter. */
|
|
365
|
+
pin_joint_set_param(joint: RID, param: int, value: float): void;
|
|
366
|
+
/**
|
|
367
|
+
* Creates a 3D 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.
|
|
368
|
+
*/
|
|
369
|
+
separation_ray_shape_create(): RID;
|
|
370
|
+
/** Activates or deactivates the 3D physics engine. */
|
|
371
|
+
set_active(active: boolean): void;
|
|
372
|
+
/**
|
|
373
|
+
* Returns the shape data that configures the shape, such as the half-extents of a box or the triangles of a concave (trimesh) shape. See {@link shape_set_data} for the precise format of this data in each case.
|
|
374
|
+
*/
|
|
375
|
+
shape_get_data(shape: RID): unknown;
|
|
376
|
+
/**
|
|
377
|
+
* Returns the collision margin for the shape.
|
|
378
|
+
* **Note:** This is not used in Godot Physics, so will always return `0`.
|
|
379
|
+
*/
|
|
380
|
+
shape_get_margin(shape: RID): float;
|
|
381
|
+
/** Returns the shape's type. */
|
|
382
|
+
shape_get_type(shape: RID): int;
|
|
383
|
+
/**
|
|
384
|
+
* Sets the shape data that configures the shape. The `data` to be passed depends on the shape's type (see {@link shape_get_type}):
|
|
385
|
+
* - {@link SHAPE_WORLD_BOUNDARY}: a {@link Plane},
|
|
386
|
+
* - {@link SHAPE_SEPARATION_RAY}: a dictionary containing the key `"length"` with a [float] value and the key `"slide_on_slope"` with a [bool] value,
|
|
387
|
+
* - {@link SHAPE_SPHERE}: a [float] that is the radius of the sphere,
|
|
388
|
+
* - {@link SHAPE_BOX}: a {@link Vector3} containing the half-extents of the box,
|
|
389
|
+
* - {@link SHAPE_CAPSULE}: a dictionary containing the keys `"height"` and `"radius"` with [float] values,
|
|
390
|
+
* - {@link SHAPE_CYLINDER}: a dictionary containing the keys `"height"` and `"radius"` with [float] values,
|
|
391
|
+
* - {@link SHAPE_CONVEX_POLYGON}: a {@link PackedVector3Array} of points defining a convex polygon (the shape will be the convex hull of the points),
|
|
392
|
+
* - {@link SHAPE_CONCAVE_POLYGON}: a dictionary containing the key `"faces"` with a {@link PackedVector3Array} value (with a length divisible by 3, so that each 3-tuple of points forms a face) and the key `"backface_collision"` with a [bool] value,
|
|
393
|
+
* - {@link SHAPE_HEIGHTMAP}: a dictionary containing the keys `"width"` and `"depth"` with [int] values, and the key `"heights"` with a value that is a packed array of [float]s of length `width * depth` (that is a {@link PackedFloat32Array}, or a {@link PackedFloat64Array} if Godot was compiled with the `precision=double` option), and optionally the keys `"min_height"` and `"max_height"` with [float] values,
|
|
394
|
+
* - {@link SHAPE_SOFT_BODY}: the input `data` is ignored and this method has no effect,
|
|
395
|
+
* - {@link SHAPE_CUSTOM}: the input `data` is interpreted by a custom physics server, if it supports custom shapes.
|
|
396
|
+
*/
|
|
397
|
+
shape_set_data(shape: RID, data: unknown): void;
|
|
398
|
+
/**
|
|
399
|
+
* Sets the collision margin for the shape.
|
|
400
|
+
* **Note:** This is not used in Godot Physics.
|
|
401
|
+
*/
|
|
402
|
+
shape_set_margin(shape: RID, margin: float): void;
|
|
403
|
+
/** Gets a slider joint parameter. */
|
|
404
|
+
slider_joint_get_param(joint: RID, param: int): float;
|
|
405
|
+
/** Gets a slider joint parameter. */
|
|
406
|
+
slider_joint_set_param(joint: RID, param: int, value: float): void;
|
|
407
|
+
/** Adds the given body to the list of bodies exempt from collisions. */
|
|
408
|
+
soft_body_add_collision_exception(body: RID, body_b: RID): void;
|
|
409
|
+
/**
|
|
410
|
+
* Distributes and applies a force to all points. A force is time dependent and meant to be applied every physics update.
|
|
411
|
+
*/
|
|
412
|
+
soft_body_apply_central_force(body: RID, force: Vector3 | Vector3i): void;
|
|
413
|
+
/**
|
|
414
|
+
* Distributes and applies an impulse to all points.
|
|
415
|
+
* 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).
|
|
416
|
+
*/
|
|
417
|
+
soft_body_apply_central_impulse(body: RID, impulse: Vector3 | Vector3i): void;
|
|
418
|
+
/** Applies a force to a point. A force is time dependent and meant to be applied every physics update. */
|
|
419
|
+
soft_body_apply_point_force(body: RID, point_index: int, force: Vector3 | Vector3i): void;
|
|
420
|
+
/**
|
|
421
|
+
* Applies an impulse to a point.
|
|
422
|
+
* 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).
|
|
423
|
+
*/
|
|
424
|
+
soft_body_apply_point_impulse(body: RID, point_index: int, impulse: Vector3 | Vector3i): void;
|
|
425
|
+
/** Creates a new soft body and returns its internal {@link RID}. */
|
|
426
|
+
soft_body_create(): RID;
|
|
427
|
+
/** Returns the bounds of the given soft body in global coordinates. */
|
|
428
|
+
soft_body_get_bounds(body: RID): AABB;
|
|
429
|
+
/** Returns the physics layer or layers that the given soft body belongs to. */
|
|
430
|
+
soft_body_get_collision_layer(body: RID): int;
|
|
431
|
+
/** Returns the physics layer or layers that the given soft body can collide with. */
|
|
432
|
+
soft_body_get_collision_mask(body: RID): int;
|
|
433
|
+
/** Returns the damping coefficient of the given soft body. */
|
|
434
|
+
soft_body_get_damping_coefficient(body: RID): float;
|
|
435
|
+
/** Returns the drag coefficient of the given soft body. */
|
|
436
|
+
soft_body_get_drag_coefficient(body: RID): float;
|
|
437
|
+
/** Returns the linear stiffness of the given soft body. */
|
|
438
|
+
soft_body_get_linear_stiffness(body: RID): float;
|
|
439
|
+
/** Returns the current position of the given soft body point in global coordinates. */
|
|
440
|
+
soft_body_get_point_global_position(body: RID, point_index: int): Vector3;
|
|
441
|
+
/** Returns the pressure coefficient of the given soft body. */
|
|
442
|
+
soft_body_get_pressure_coefficient(body: RID): float;
|
|
443
|
+
/** Returns the shrinking factor of the given soft body. */
|
|
444
|
+
soft_body_get_shrinking_factor(body: RID): float;
|
|
445
|
+
/** Returns the simulation precision of the given soft body. */
|
|
446
|
+
soft_body_get_simulation_precision(body: RID): int;
|
|
447
|
+
/** Returns the {@link RID} of the space assigned to the given soft body. */
|
|
448
|
+
soft_body_get_space(body: RID): RID;
|
|
449
|
+
/**
|
|
450
|
+
* Returns the given soft body state.
|
|
451
|
+
* **Note:** Godot's default physics implementation does not support {@link BODY_STATE_LINEAR_VELOCITY}, {@link BODY_STATE_ANGULAR_VELOCITY}, {@link BODY_STATE_SLEEPING}, or {@link BODY_STATE_CAN_SLEEP}.
|
|
452
|
+
*/
|
|
453
|
+
soft_body_get_state(body: RID, state: int): unknown;
|
|
454
|
+
/** Returns the total mass assigned to the given soft body. */
|
|
455
|
+
soft_body_get_total_mass(body: RID): float;
|
|
456
|
+
/** Returns whether the given soft body point is pinned. */
|
|
457
|
+
soft_body_is_point_pinned(body: RID, point_index: int): boolean;
|
|
458
|
+
/** Moves the given soft body point to a position in global coordinates. */
|
|
459
|
+
soft_body_move_point(body: RID, point_index: int, global_position: Vector3 | Vector3i): void;
|
|
460
|
+
/**
|
|
461
|
+
* Pins or unpins the given soft body point based on the value of `pin`.
|
|
462
|
+
* **Note:** Pinning a point effectively makes it kinematic, preventing it from being affected by forces, but you can still move it using {@link soft_body_move_point}.
|
|
463
|
+
*/
|
|
464
|
+
soft_body_pin_point(body: RID, point_index: int, pin: boolean): void;
|
|
465
|
+
/** Unpins all points of the given soft body. */
|
|
466
|
+
soft_body_remove_all_pinned_points(body: RID): void;
|
|
467
|
+
/** Removes the given body from the list of bodies exempt from collisions. */
|
|
468
|
+
soft_body_remove_collision_exception(body: RID, body_b: RID): void;
|
|
469
|
+
/** Sets the physics layer or layers the given soft body belongs to. */
|
|
470
|
+
soft_body_set_collision_layer(body: RID, layer: int): void;
|
|
471
|
+
/** Sets the physics layer or layers the given soft body can collide with. */
|
|
472
|
+
soft_body_set_collision_mask(body: RID, mask: int): void;
|
|
473
|
+
/**
|
|
474
|
+
* Sets the damping coefficient of the given soft body. Higher values will slow down the body more noticeably when forces are applied.
|
|
475
|
+
*/
|
|
476
|
+
soft_body_set_damping_coefficient(body: RID, damping_coefficient: float): void;
|
|
477
|
+
/**
|
|
478
|
+
* Sets the drag coefficient of the given soft body. Higher values increase this body's air resistance.
|
|
479
|
+
* **Note:** This value is currently unused by Godot's default physics implementation.
|
|
480
|
+
*/
|
|
481
|
+
soft_body_set_drag_coefficient(body: RID, drag_coefficient: float): void;
|
|
482
|
+
/**
|
|
483
|
+
* Sets the linear stiffness of the given soft body. Higher values will result in a stiffer body, while lower values will increase the body's ability to bend. The value can be between `0.0` and `1.0` (inclusive).
|
|
484
|
+
*/
|
|
485
|
+
soft_body_set_linear_stiffness(body: RID, stiffness: float): void;
|
|
486
|
+
/** Sets the mesh of the given soft body. */
|
|
487
|
+
soft_body_set_mesh(body: RID, mesh: RID): void;
|
|
488
|
+
/**
|
|
489
|
+
* Sets the pressure coefficient of the given soft body. Simulates pressure build-up from inside this body. Higher values increase the strength of this effect.
|
|
490
|
+
*/
|
|
491
|
+
soft_body_set_pressure_coefficient(body: RID, pressure_coefficient: float): void;
|
|
492
|
+
/** Sets whether the given soft body will be pickable when using object picking. */
|
|
493
|
+
soft_body_set_ray_pickable(body: RID, enable: boolean): void;
|
|
494
|
+
/** Sets the shrinking factor of the given soft body. */
|
|
495
|
+
soft_body_set_shrinking_factor(body: RID, shrinking_factor: float): void;
|
|
496
|
+
/**
|
|
497
|
+
* Sets the simulation precision of the given soft body. Increasing this value will improve the resulting simulation, but can affect performance. Use with care.
|
|
498
|
+
*/
|
|
499
|
+
soft_body_set_simulation_precision(body: RID, simulation_precision: int): void;
|
|
500
|
+
/** Assigns a space to the given soft body (see {@link space_create}). */
|
|
501
|
+
soft_body_set_space(body: RID, space: RID): void;
|
|
502
|
+
/**
|
|
503
|
+
* Sets the given body state for the given body.
|
|
504
|
+
* **Note:** Godot's default physics implementation does not support {@link BODY_STATE_LINEAR_VELOCITY}, {@link BODY_STATE_ANGULAR_VELOCITY}, {@link BODY_STATE_SLEEPING}, or {@link BODY_STATE_CAN_SLEEP}.
|
|
505
|
+
*/
|
|
506
|
+
soft_body_set_state(body: RID, state: int, variant: unknown): void;
|
|
507
|
+
/** Sets the total mass for the given soft body. */
|
|
508
|
+
soft_body_set_total_mass(body: RID, total_mass: float): void;
|
|
509
|
+
/** Sets the global transform of the given soft body. */
|
|
510
|
+
soft_body_set_transform(body: RID, transform: Transform3D | Projection): void;
|
|
511
|
+
/**
|
|
512
|
+
* Requests that the physics server updates the rendering server with the latest positions of the given soft body's points through the `rendering_server_handler` interface.
|
|
513
|
+
*/
|
|
514
|
+
soft_body_update_rendering_server(body: RID, rendering_server_handler: PhysicsServer3DRenderingServerHandler): void;
|
|
515
|
+
/**
|
|
516
|
+
* Creates a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with {@link area_set_space}, or to a body with {@link body_set_space}.
|
|
517
|
+
*/
|
|
518
|
+
space_create(): RID;
|
|
519
|
+
/**
|
|
520
|
+
* Returns the state of a space, a {@link PhysicsDirectSpaceState3D}. This object can be used to make collision/intersection queries.
|
|
521
|
+
*/
|
|
522
|
+
space_get_direct_state(space: RID): PhysicsDirectSpaceState3D | null;
|
|
523
|
+
/** Returns the value of a space parameter. */
|
|
524
|
+
space_get_param(space: RID, param: int): float;
|
|
525
|
+
/** Returns whether the space is active. */
|
|
526
|
+
space_is_active(space: RID): boolean;
|
|
527
|
+
/** Marks a space as active. It will not have an effect, unless it is assigned to an area or body. */
|
|
528
|
+
space_set_active(space: RID, active: boolean): void;
|
|
529
|
+
/**
|
|
530
|
+
* Sets the value for a space parameter. A list of available parameters is on the {@link SpaceParameter} constants.
|
|
531
|
+
*/
|
|
532
|
+
space_set_param(space: RID, param: int, value: float): void;
|
|
533
|
+
/**
|
|
534
|
+
* Creates a 3D sphere shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shape_set_data} to set the sphere's radius.
|
|
535
|
+
*/
|
|
536
|
+
sphere_shape_create(): RID;
|
|
537
|
+
/**
|
|
538
|
+
* Creates a 3D 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.
|
|
539
|
+
*/
|
|
540
|
+
world_boundary_shape_create(): RID;
|
|
541
|
+
|
|
542
|
+
// enum JointType
|
|
543
|
+
/** The {@link Joint3D} is a {@link PinJoint3D}. */
|
|
544
|
+
readonly JOINT_TYPE_PIN: int;
|
|
545
|
+
/** The {@link Joint3D} is a {@link HingeJoint3D}. */
|
|
546
|
+
readonly JOINT_TYPE_HINGE: int;
|
|
547
|
+
/** The {@link Joint3D} is a {@link SliderJoint3D}. */
|
|
548
|
+
readonly JOINT_TYPE_SLIDER: int;
|
|
549
|
+
/** The {@link Joint3D} is a {@link ConeTwistJoint3D}. */
|
|
550
|
+
readonly JOINT_TYPE_CONE_TWIST: int;
|
|
551
|
+
/** The {@link Joint3D} is a {@link Generic6DOFJoint3D}. */
|
|
552
|
+
readonly JOINT_TYPE_6DOF: int;
|
|
553
|
+
/** Represents the size of the {@link JointType} enum. */
|
|
554
|
+
readonly JOINT_TYPE_MAX: int;
|
|
555
|
+
// enum PinJointParam
|
|
556
|
+
/**
|
|
557
|
+
* The strength with which the pinned objects try to stay in positional relation to each other. The higher, the stronger.
|
|
558
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
559
|
+
*/
|
|
560
|
+
readonly PIN_JOINT_BIAS: int;
|
|
561
|
+
/**
|
|
562
|
+
* The strength with which the pinned objects try to stay in velocity relation to each other. The higher, the stronger.
|
|
563
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
564
|
+
*/
|
|
565
|
+
readonly PIN_JOINT_DAMPING: int;
|
|
566
|
+
/**
|
|
567
|
+
* If above 0, this value is the maximum value for an impulse that this Joint3D puts on its ends.
|
|
568
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
569
|
+
*/
|
|
570
|
+
readonly PIN_JOINT_IMPULSE_CLAMP: int;
|
|
571
|
+
// enum HingeJointParam
|
|
572
|
+
/**
|
|
573
|
+
* The speed with which the two bodies get pulled together when they move in different directions.
|
|
574
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
575
|
+
*/
|
|
576
|
+
readonly HINGE_JOINT_BIAS: int;
|
|
577
|
+
/** The maximum rotation across the Hinge. */
|
|
578
|
+
readonly HINGE_JOINT_LIMIT_UPPER: int;
|
|
579
|
+
/** The minimum rotation across the Hinge. */
|
|
580
|
+
readonly HINGE_JOINT_LIMIT_LOWER: int;
|
|
581
|
+
/**
|
|
582
|
+
* The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
|
|
583
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
584
|
+
*/
|
|
585
|
+
readonly HINGE_JOINT_LIMIT_BIAS: int;
|
|
586
|
+
/**
|
|
587
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
588
|
+
*/
|
|
589
|
+
readonly HINGE_JOINT_LIMIT_SOFTNESS: int;
|
|
590
|
+
/**
|
|
591
|
+
* The lower this value, the more the rotation gets slowed down.
|
|
592
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
593
|
+
*/
|
|
594
|
+
readonly HINGE_JOINT_LIMIT_RELAXATION: int;
|
|
595
|
+
/** Target speed for the motor. */
|
|
596
|
+
readonly HINGE_JOINT_MOTOR_TARGET_VELOCITY: int;
|
|
597
|
+
/** Maximum acceleration for the motor. */
|
|
598
|
+
readonly HINGE_JOINT_MOTOR_MAX_IMPULSE: int;
|
|
599
|
+
// enum HingeJointFlag
|
|
600
|
+
/** If `true`, the Hinge has a maximum and a minimum rotation. */
|
|
601
|
+
readonly HINGE_JOINT_FLAG_USE_LIMIT: int;
|
|
602
|
+
/** If `true`, a motor turns the Hinge. */
|
|
603
|
+
readonly HINGE_JOINT_FLAG_ENABLE_MOTOR: int;
|
|
604
|
+
// enum SliderJointParam
|
|
605
|
+
/** The maximum difference between the pivot points on their X axis before damping happens. */
|
|
606
|
+
readonly SLIDER_JOINT_LINEAR_LIMIT_UPPER: int;
|
|
607
|
+
/** The minimum difference between the pivot points on their X axis before damping happens. */
|
|
608
|
+
readonly SLIDER_JOINT_LINEAR_LIMIT_LOWER: int;
|
|
609
|
+
/**
|
|
610
|
+
* A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
|
|
611
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
612
|
+
*/
|
|
613
|
+
readonly SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS: int;
|
|
614
|
+
/**
|
|
615
|
+
* The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
|
|
616
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
617
|
+
*/
|
|
618
|
+
readonly SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION: int;
|
|
619
|
+
/**
|
|
620
|
+
* The amount of damping once the slider limits are surpassed.
|
|
621
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
622
|
+
*/
|
|
623
|
+
readonly SLIDER_JOINT_LINEAR_LIMIT_DAMPING: int;
|
|
624
|
+
/**
|
|
625
|
+
* A factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
|
|
626
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
627
|
+
*/
|
|
628
|
+
readonly SLIDER_JOINT_LINEAR_MOTION_SOFTNESS: int;
|
|
629
|
+
/**
|
|
630
|
+
* The amount of restitution inside the slider limits.
|
|
631
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
632
|
+
*/
|
|
633
|
+
readonly SLIDER_JOINT_LINEAR_MOTION_RESTITUTION: int;
|
|
634
|
+
/**
|
|
635
|
+
* The amount of damping inside the slider limits.
|
|
636
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
637
|
+
*/
|
|
638
|
+
readonly SLIDER_JOINT_LINEAR_MOTION_DAMPING: int;
|
|
639
|
+
/**
|
|
640
|
+
* A factor applied to the movement across axes orthogonal to the slider.
|
|
641
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
642
|
+
*/
|
|
643
|
+
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS: int;
|
|
644
|
+
/**
|
|
645
|
+
* The amount of restitution when movement is across axes orthogonal to the slider.
|
|
646
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
647
|
+
*/
|
|
648
|
+
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION: int;
|
|
649
|
+
/**
|
|
650
|
+
* The amount of damping when movement is across axes orthogonal to the slider.
|
|
651
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
652
|
+
*/
|
|
653
|
+
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING: int;
|
|
654
|
+
/**
|
|
655
|
+
* The upper limit of rotation in the slider.
|
|
656
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
657
|
+
*/
|
|
658
|
+
readonly SLIDER_JOINT_ANGULAR_LIMIT_UPPER: int;
|
|
659
|
+
/**
|
|
660
|
+
* The lower limit of rotation in the slider.
|
|
661
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
662
|
+
*/
|
|
663
|
+
readonly SLIDER_JOINT_ANGULAR_LIMIT_LOWER: int;
|
|
664
|
+
/**
|
|
665
|
+
* A factor applied to the all rotation once the limit is surpassed.
|
|
666
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
667
|
+
*/
|
|
668
|
+
readonly SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
|
|
669
|
+
/**
|
|
670
|
+
* The amount of restitution of the rotation when the limit is surpassed.
|
|
671
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
672
|
+
*/
|
|
673
|
+
readonly SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION: int;
|
|
674
|
+
/**
|
|
675
|
+
* The amount of damping of the rotation when the limit is surpassed.
|
|
676
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
677
|
+
*/
|
|
678
|
+
readonly SLIDER_JOINT_ANGULAR_LIMIT_DAMPING: int;
|
|
679
|
+
/**
|
|
680
|
+
* A factor that gets applied to the all rotation in the limits.
|
|
681
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
682
|
+
*/
|
|
683
|
+
readonly SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS: int;
|
|
684
|
+
/**
|
|
685
|
+
* The amount of restitution of the rotation in the limits.
|
|
686
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
687
|
+
*/
|
|
688
|
+
readonly SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION: int;
|
|
689
|
+
/**
|
|
690
|
+
* The amount of damping of the rotation in the limits.
|
|
691
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
692
|
+
*/
|
|
693
|
+
readonly SLIDER_JOINT_ANGULAR_MOTION_DAMPING: int;
|
|
694
|
+
/**
|
|
695
|
+
* A factor that gets applied to the all rotation across axes orthogonal to the slider.
|
|
696
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
697
|
+
*/
|
|
698
|
+
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS: int;
|
|
699
|
+
/**
|
|
700
|
+
* The amount of restitution of the rotation across axes orthogonal to the slider.
|
|
701
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
702
|
+
*/
|
|
703
|
+
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION: int;
|
|
704
|
+
/**
|
|
705
|
+
* The amount of damping of the rotation across axes orthogonal to the slider.
|
|
706
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
707
|
+
*/
|
|
708
|
+
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING: int;
|
|
709
|
+
/** Represents the size of the {@link SliderJointParam} enum. */
|
|
710
|
+
readonly SLIDER_JOINT_MAX: int;
|
|
711
|
+
// enum ConeTwistJointParam
|
|
712
|
+
/**
|
|
713
|
+
* Swing is rotation from side to side, around the axis perpendicular to the twist axis.
|
|
714
|
+
* The swing span defines, how much rotation will not get corrected along the swing axis.
|
|
715
|
+
* Could be defined as looseness in the {@link ConeTwistJoint3D}. If below 0.05, this behavior is locked.
|
|
716
|
+
*/
|
|
717
|
+
readonly CONE_TWIST_JOINT_SWING_SPAN: int;
|
|
718
|
+
/**
|
|
719
|
+
* Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05.
|
|
720
|
+
*/
|
|
721
|
+
readonly CONE_TWIST_JOINT_TWIST_SPAN: int;
|
|
722
|
+
/**
|
|
723
|
+
* The speed with which the swing or twist will take place. The higher, the faster.
|
|
724
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
725
|
+
*/
|
|
726
|
+
readonly CONE_TWIST_JOINT_BIAS: int;
|
|
727
|
+
/**
|
|
728
|
+
* The ease with which the Joint3D twists, if it's too low, it takes more force to twist the joint.
|
|
729
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
730
|
+
*/
|
|
731
|
+
readonly CONE_TWIST_JOINT_SOFTNESS: int;
|
|
732
|
+
/**
|
|
733
|
+
* Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
|
734
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
735
|
+
*/
|
|
736
|
+
readonly CONE_TWIST_JOINT_RELAXATION: int;
|
|
737
|
+
// enum G6DOFJointAxisParam
|
|
738
|
+
/** The minimum difference between the pivot points' axes. */
|
|
739
|
+
readonly G6DOF_JOINT_LINEAR_LOWER_LIMIT: int;
|
|
740
|
+
/** The maximum difference between the pivot points' axes. */
|
|
741
|
+
readonly G6DOF_JOINT_LINEAR_UPPER_LIMIT: int;
|
|
742
|
+
/**
|
|
743
|
+
* A factor that gets applied to the movement across the axes. The lower, the slower the movement.
|
|
744
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
745
|
+
*/
|
|
746
|
+
readonly G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS: int;
|
|
747
|
+
/**
|
|
748
|
+
* The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost.
|
|
749
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
750
|
+
*/
|
|
751
|
+
readonly G6DOF_JOINT_LINEAR_RESTITUTION: int;
|
|
752
|
+
/**
|
|
753
|
+
* The amount of damping that happens at the linear motion across the axes.
|
|
754
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
755
|
+
*/
|
|
756
|
+
readonly G6DOF_JOINT_LINEAR_DAMPING: int;
|
|
757
|
+
/** The velocity that the joint's linear motor will attempt to reach. */
|
|
758
|
+
readonly G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY: int;
|
|
759
|
+
/** The maximum force that the linear motor can apply while trying to reach the target velocity. */
|
|
760
|
+
readonly G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT: int;
|
|
761
|
+
readonly G6DOF_JOINT_LINEAR_SPRING_STIFFNESS: int;
|
|
762
|
+
readonly G6DOF_JOINT_LINEAR_SPRING_DAMPING: int;
|
|
763
|
+
readonly G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT: int;
|
|
764
|
+
/** The minimum rotation in negative direction to break loose and rotate around the axes. */
|
|
765
|
+
readonly G6DOF_JOINT_ANGULAR_LOWER_LIMIT: int;
|
|
766
|
+
/** The minimum rotation in positive direction to break loose and rotate around the axes. */
|
|
767
|
+
readonly G6DOF_JOINT_ANGULAR_UPPER_LIMIT: int;
|
|
768
|
+
/**
|
|
769
|
+
* A factor that gets multiplied onto all rotations across the axes.
|
|
770
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
771
|
+
*/
|
|
772
|
+
readonly G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
|
|
773
|
+
/**
|
|
774
|
+
* The amount of rotational damping across the axes. The lower, the more damping occurs.
|
|
775
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
776
|
+
*/
|
|
777
|
+
readonly G6DOF_JOINT_ANGULAR_DAMPING: int;
|
|
778
|
+
/**
|
|
779
|
+
* The amount of rotational restitution across the axes. The lower, the more restitution occurs.
|
|
780
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
781
|
+
*/
|
|
782
|
+
readonly G6DOF_JOINT_ANGULAR_RESTITUTION: int;
|
|
783
|
+
/**
|
|
784
|
+
* The maximum amount of force that can occur, when rotating around the axes.
|
|
785
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
786
|
+
*/
|
|
787
|
+
readonly G6DOF_JOINT_ANGULAR_FORCE_LIMIT: int;
|
|
788
|
+
/**
|
|
789
|
+
* When correcting the crossing of limits in rotation across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
|
|
790
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
791
|
+
*/
|
|
792
|
+
readonly G6DOF_JOINT_ANGULAR_ERP: int;
|
|
793
|
+
/** Target speed for the motor at the axes. */
|
|
794
|
+
readonly G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY: int;
|
|
795
|
+
/** Maximum acceleration for the motor at the axes. */
|
|
796
|
+
readonly G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT: int;
|
|
797
|
+
readonly G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS: int;
|
|
798
|
+
readonly G6DOF_JOINT_ANGULAR_SPRING_DAMPING: int;
|
|
799
|
+
readonly G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT: int;
|
|
800
|
+
/** Represents the size of the {@link G6DOFJointAxisParam} enum. */
|
|
801
|
+
readonly G6DOF_JOINT_MAX: int;
|
|
802
|
+
// enum G6DOFJointAxisFlag
|
|
803
|
+
/** If set, linear motion is possible within the given limits. */
|
|
804
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT: int;
|
|
805
|
+
/** If set, rotational motion is possible. */
|
|
806
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT: int;
|
|
807
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING: int;
|
|
808
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING: int;
|
|
809
|
+
/** If set, there is a rotational motor across these axes. */
|
|
810
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_MOTOR: int;
|
|
811
|
+
/** If set, there is a linear motor on this axis that targets a specific velocity. */
|
|
812
|
+
readonly G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR: int;
|
|
813
|
+
/** Represents the size of the {@link G6DOFJointAxisFlag} enum. */
|
|
814
|
+
readonly G6DOF_JOINT_FLAG_MAX: int;
|
|
815
|
+
// enum ShapeType
|
|
816
|
+
/** Constant for creating a world boundary shape (used by the {@link WorldBoundaryShape3D} resource). */
|
|
817
|
+
readonly SHAPE_WORLD_BOUNDARY: int;
|
|
818
|
+
/** Constant for creating a separation ray shape (used by the {@link SeparationRayShape3D} resource). */
|
|
819
|
+
readonly SHAPE_SEPARATION_RAY: int;
|
|
820
|
+
/** Constant for creating a sphere shape (used by the {@link SphereShape3D} resource). */
|
|
821
|
+
readonly SHAPE_SPHERE: int;
|
|
822
|
+
/** Constant for creating a box shape (used by the {@link BoxShape3D} resource). */
|
|
823
|
+
readonly SHAPE_BOX: int;
|
|
824
|
+
/** Constant for creating a capsule shape (used by the {@link CapsuleShape3D} resource). */
|
|
825
|
+
readonly SHAPE_CAPSULE: int;
|
|
826
|
+
/** Constant for creating a cylinder shape (used by the {@link CylinderShape3D} resource). */
|
|
827
|
+
readonly SHAPE_CYLINDER: int;
|
|
828
|
+
/** Constant for creating a convex polygon shape (used by the {@link ConvexPolygonShape3D} resource). */
|
|
829
|
+
readonly SHAPE_CONVEX_POLYGON: int;
|
|
830
|
+
/**
|
|
831
|
+
* Constant for creating a concave polygon (trimesh) shape (used by the {@link ConcavePolygonShape3D} resource).
|
|
832
|
+
*/
|
|
833
|
+
readonly SHAPE_CONCAVE_POLYGON: int;
|
|
834
|
+
/** Constant for creating a heightmap shape (used by the {@link HeightMapShape3D} resource). */
|
|
835
|
+
readonly SHAPE_HEIGHTMAP: int;
|
|
836
|
+
/**
|
|
837
|
+
* Constant used internally for a soft body shape. Any attempt to create this kind of shape results in an error.
|
|
838
|
+
*/
|
|
839
|
+
readonly SHAPE_SOFT_BODY: int;
|
|
840
|
+
/**
|
|
841
|
+
* Constant used internally for a custom shape. Any attempt to create this kind of shape results in an error when using Godot Physics or Jolt Physics.
|
|
842
|
+
*/
|
|
843
|
+
readonly SHAPE_CUSTOM: int;
|
|
844
|
+
// enum AreaParameter
|
|
845
|
+
/**
|
|
846
|
+
* Constant to set/get gravity override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
847
|
+
*/
|
|
848
|
+
readonly AREA_PARAM_GRAVITY_OVERRIDE_MODE: int;
|
|
849
|
+
/** Constant to set/get gravity strength in an area. */
|
|
850
|
+
readonly AREA_PARAM_GRAVITY: int;
|
|
851
|
+
/** Constant to set/get gravity vector/center in an area. */
|
|
852
|
+
readonly AREA_PARAM_GRAVITY_VECTOR: int;
|
|
853
|
+
/** Constant to set/get whether the gravity vector of an area is a direction, or a center point. */
|
|
854
|
+
readonly AREA_PARAM_GRAVITY_IS_POINT: int;
|
|
855
|
+
/**
|
|
856
|
+
* 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 meters in radius with a surface gravity of 4.0 m/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 meters from the center the gravity will be 1.0 m/s² (twice the distance, 1/4th the gravity), at 50 meters it will be 16.0 m/s² (half the distance, 4x the gravity), and so on.
|
|
857
|
+
* The above is true only when the unit distance is a positive number. When this is set to 0.0, the gravity will be constant regardless of distance.
|
|
858
|
+
*/
|
|
859
|
+
readonly AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE: int;
|
|
860
|
+
/**
|
|
861
|
+
* Constant to set/get linear damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
862
|
+
*/
|
|
863
|
+
readonly AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE: int;
|
|
864
|
+
/** Constant to set/get the linear damping factor of an area. */
|
|
865
|
+
readonly AREA_PARAM_LINEAR_DAMP: int;
|
|
866
|
+
/**
|
|
867
|
+
* Constant to set/get angular damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
868
|
+
*/
|
|
869
|
+
readonly AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE: int;
|
|
870
|
+
/** Constant to set/get the angular damping factor of an area. */
|
|
871
|
+
readonly AREA_PARAM_ANGULAR_DAMP: int;
|
|
872
|
+
/** Constant to set/get the priority (order of processing) of an area. */
|
|
873
|
+
readonly AREA_PARAM_PRIORITY: int;
|
|
874
|
+
/**
|
|
875
|
+
* Constant to set/get the magnitude of area-specific wind force. This wind force only applies to {@link SoftBody3D} nodes. Other physics bodies are currently not affected by wind.
|
|
876
|
+
*/
|
|
877
|
+
readonly AREA_PARAM_WIND_FORCE_MAGNITUDE: int;
|
|
878
|
+
/** Constant to set/get the 3D vector that specifies the origin from which an area-specific wind blows. */
|
|
879
|
+
readonly AREA_PARAM_WIND_SOURCE: int;
|
|
880
|
+
/**
|
|
881
|
+
* Constant to set/get the 3D vector that specifies the direction in which an area-specific wind blows.
|
|
882
|
+
*/
|
|
883
|
+
readonly AREA_PARAM_WIND_DIRECTION: int;
|
|
884
|
+
/**
|
|
885
|
+
* Constant to set/get the exponential rate at which wind force decreases with distance from its origin.
|
|
886
|
+
*/
|
|
887
|
+
readonly AREA_PARAM_WIND_ATTENUATION_FACTOR: int;
|
|
888
|
+
// enum AreaSpaceOverrideMode
|
|
889
|
+
/**
|
|
890
|
+
* This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
|
891
|
+
*/
|
|
892
|
+
readonly AREA_SPACE_OVERRIDE_DISABLED: int;
|
|
893
|
+
/**
|
|
894
|
+
* 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.
|
|
895
|
+
*/
|
|
896
|
+
readonly AREA_SPACE_OVERRIDE_COMBINE: int;
|
|
897
|
+
/**
|
|
898
|
+
* 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.
|
|
899
|
+
*/
|
|
900
|
+
readonly AREA_SPACE_OVERRIDE_COMBINE_REPLACE: int;
|
|
901
|
+
/**
|
|
902
|
+
* This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
903
|
+
*/
|
|
904
|
+
readonly AREA_SPACE_OVERRIDE_REPLACE: int;
|
|
905
|
+
/**
|
|
906
|
+
* This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
907
|
+
*/
|
|
908
|
+
readonly AREA_SPACE_OVERRIDE_REPLACE_COMBINE: int;
|
|
909
|
+
// enum BodyMode
|
|
910
|
+
/**
|
|
911
|
+
* 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.
|
|
912
|
+
*/
|
|
913
|
+
readonly BODY_MODE_STATIC: int;
|
|
914
|
+
/**
|
|
915
|
+
* Constant for kinematic bodies. In this mode, a body can be only moved by user code and collides with other bodies along its path.
|
|
916
|
+
*/
|
|
917
|
+
readonly BODY_MODE_KINEMATIC: int;
|
|
918
|
+
/**
|
|
919
|
+
* Constant for rigid bodies. In this mode, a body can be pushed by other bodies and has forces applied.
|
|
920
|
+
*/
|
|
921
|
+
readonly BODY_MODE_RIGID: int;
|
|
922
|
+
/**
|
|
923
|
+
* Constant for linear rigid bodies. In this mode, a body can not rotate, and only its linear velocity is affected by external forces.
|
|
924
|
+
*/
|
|
925
|
+
readonly BODY_MODE_RIGID_LINEAR: int;
|
|
926
|
+
// enum BodyParameter
|
|
927
|
+
/** Constant to set/get a body's bounce factor. */
|
|
928
|
+
readonly BODY_PARAM_BOUNCE: int;
|
|
929
|
+
/** Constant to set/get a body's friction. */
|
|
930
|
+
readonly BODY_PARAM_FRICTION: int;
|
|
931
|
+
/** Constant to set/get a body's mass. */
|
|
932
|
+
readonly BODY_PARAM_MASS: int;
|
|
933
|
+
/** Constant to set/get a body's inertia. */
|
|
934
|
+
readonly BODY_PARAM_INERTIA: int;
|
|
935
|
+
/** Constant to set/get a body's center of mass position in the body's local coordinate system. */
|
|
936
|
+
readonly BODY_PARAM_CENTER_OF_MASS: int;
|
|
937
|
+
/** Constant to set/get a body's gravity multiplier. */
|
|
938
|
+
readonly BODY_PARAM_GRAVITY_SCALE: int;
|
|
939
|
+
/** Constant to set/get a body's linear damping mode. See {@link BodyDampMode} for possible values. */
|
|
940
|
+
readonly BODY_PARAM_LINEAR_DAMP_MODE: int;
|
|
941
|
+
/** Constant to set/get a body's angular damping mode. See {@link BodyDampMode} for possible values. */
|
|
942
|
+
readonly BODY_PARAM_ANGULAR_DAMP_MODE: int;
|
|
943
|
+
/** Constant to set/get a body's linear damping factor. */
|
|
944
|
+
readonly BODY_PARAM_LINEAR_DAMP: int;
|
|
945
|
+
/** Constant to set/get a body's angular damping factor. */
|
|
946
|
+
readonly BODY_PARAM_ANGULAR_DAMP: int;
|
|
947
|
+
/** Represents the size of the {@link BodyParameter} enum. */
|
|
948
|
+
readonly BODY_PARAM_MAX: int;
|
|
949
|
+
// enum BodyDampMode
|
|
950
|
+
/** The body's damping value is added to any value set in areas or the default value. */
|
|
951
|
+
readonly BODY_DAMP_MODE_COMBINE: int;
|
|
952
|
+
/** The body's damping value replaces any value set in areas or the default value. */
|
|
953
|
+
readonly BODY_DAMP_MODE_REPLACE: int;
|
|
954
|
+
// enum BodyState
|
|
955
|
+
/** Constant to set/get the current transform matrix of the body. */
|
|
956
|
+
readonly BODY_STATE_TRANSFORM: int;
|
|
957
|
+
/** Constant to set/get the current linear velocity of the body. */
|
|
958
|
+
readonly BODY_STATE_LINEAR_VELOCITY: int;
|
|
959
|
+
/** Constant to set/get the current angular velocity of the body. */
|
|
960
|
+
readonly BODY_STATE_ANGULAR_VELOCITY: int;
|
|
961
|
+
/** Constant to sleep/wake up a body, or to get whether it is sleeping. */
|
|
962
|
+
readonly BODY_STATE_SLEEPING: int;
|
|
963
|
+
/** Constant to set/get whether the body can sleep. */
|
|
964
|
+
readonly BODY_STATE_CAN_SLEEP: int;
|
|
965
|
+
// enum AreaBodyStatus
|
|
966
|
+
/**
|
|
967
|
+
* The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
|
968
|
+
*/
|
|
969
|
+
readonly AREA_BODY_ADDED: int;
|
|
970
|
+
/**
|
|
971
|
+
* The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
|
972
|
+
*/
|
|
973
|
+
readonly AREA_BODY_REMOVED: int;
|
|
974
|
+
// enum ProcessInfo
|
|
975
|
+
/** Constant to get the number of objects that are not sleeping. */
|
|
976
|
+
readonly INFO_ACTIVE_OBJECTS: int;
|
|
977
|
+
/** Constant to get the number of possible collisions. */
|
|
978
|
+
readonly INFO_COLLISION_PAIRS: int;
|
|
979
|
+
/** Constant to get the number of space regions where a collision could occur. */
|
|
980
|
+
readonly INFO_ISLAND_COUNT: int;
|
|
981
|
+
// enum SpaceParameter
|
|
982
|
+
/**
|
|
983
|
+
* Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
|
984
|
+
*/
|
|
985
|
+
readonly SPACE_PARAM_CONTACT_RECYCLE_RADIUS: int;
|
|
986
|
+
/**
|
|
987
|
+
* Constant to set/get the maximum distance a shape can be from another before they are considered separated and the contact is discarded.
|
|
988
|
+
*/
|
|
989
|
+
readonly SPACE_PARAM_CONTACT_MAX_SEPARATION: int;
|
|
990
|
+
/**
|
|
991
|
+
* Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
|
992
|
+
*/
|
|
993
|
+
readonly SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION: int;
|
|
994
|
+
/**
|
|
995
|
+
* 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.
|
|
996
|
+
*/
|
|
997
|
+
readonly SPACE_PARAM_CONTACT_DEFAULT_BIAS: int;
|
|
998
|
+
/**
|
|
999
|
+
* 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.
|
|
1000
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1001
|
+
*/
|
|
1002
|
+
readonly SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
1003
|
+
/**
|
|
1004
|
+
* 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.
|
|
1005
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1006
|
+
*/
|
|
1007
|
+
readonly SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
1008
|
+
/**
|
|
1009
|
+
* 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.
|
|
1010
|
+
*/
|
|
1011
|
+
readonly SPACE_PARAM_BODY_TIME_TO_SLEEP: int;
|
|
1012
|
+
/**
|
|
1013
|
+
* Constant to set/get the number of solver iterations for contacts and constraints. The greater the number of iterations, the more accurate the collisions and constraints will be. However, a greater number of iterations requires more CPU power, which can decrease performance.
|
|
1014
|
+
*/
|
|
1015
|
+
readonly SPACE_PARAM_SOLVER_ITERATIONS: int;
|
|
1016
|
+
// enum BodyAxis
|
|
1017
|
+
readonly BODY_AXIS_LINEAR_X: int;
|
|
1018
|
+
readonly BODY_AXIS_LINEAR_Y: int;
|
|
1019
|
+
readonly BODY_AXIS_LINEAR_Z: int;
|
|
1020
|
+
readonly BODY_AXIS_ANGULAR_X: int;
|
|
1021
|
+
readonly BODY_AXIS_ANGULAR_Y: int;
|
|
1022
|
+
readonly BODY_AXIS_ANGULAR_Z: int;
|
|
1023
|
+
}
|
|
1024
|
+
declare var PhysicsServer3D: PhysicsServer3D & {
|
|
1025
|
+
new(): PhysicsServer3D;
|
|
1026
|
+
readonly prototype: PhysicsServer3D;
|
|
1027
|
+
};
|
|
1028
|
+
|