typescript-to-gdscript 0.1.1 → 0.1.2
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/README.md +4 -2
- package/dist/cli/convert.d.ts.map +1 -1
- package/dist/cli/convert.js +15 -5
- package/dist/cli/convert.js.map +1 -1
- package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
- package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
- package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
- package/dist/converter/ts-to-gd/expressions.js +31 -7
- package/dist/converter/ts-to-gd/expressions.js.map +1 -1
- package/dist/watcher/check.d.ts +87 -0
- package/dist/watcher/check.d.ts.map +1 -0
- package/dist/watcher/check.js +209 -0
- package/dist/watcher/check.js.map +1 -0
- package/dist/watcher/heal.d.ts +66 -0
- package/dist/watcher/heal.d.ts.map +1 -0
- package/dist/watcher/heal.js +132 -0
- package/dist/watcher/heal.js.map +1 -0
- package/dist/watcher/index.d.ts +1 -0
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +48 -52
- package/dist/watcher/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AnimationLibrary.d.ts +4 -4
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
- package/typings/classes/Area3D.d.ts +14 -7
- package/typings/classes/AreaLight3D.d.ts +37 -0
- package/typings/classes/ArrayMesh.d.ts +15 -0
- package/typings/classes/AudioEffectAmplify.d.ts +2 -2
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
- package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectCapture.d.ts +10 -9
- package/typings/classes/AudioEffectChorus.d.ts +57 -28
- package/typings/classes/AudioEffectCompressor.d.ts +11 -9
- package/typings/classes/AudioEffectDelay.d.ts +21 -15
- package/typings/classes/AudioEffectDistortion.d.ts +19 -10
- package/typings/classes/AudioEffectEQ.d.ts +2 -2
- package/typings/classes/AudioEffectEQ10.d.ts +2 -2
- package/typings/classes/AudioEffectEQ21.d.ts +2 -2
- package/typings/classes/AudioEffectEQ6.d.ts +2 -2
- package/typings/classes/AudioEffectFilter.d.ts +25 -9
- package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
- package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectInstance.d.ts +1 -1
- package/typings/classes/AudioEffectLimiter.d.ts +9 -4
- package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
- package/typings/classes/AudioEffectPanner.d.ts +7 -2
- package/typings/classes/AudioEffectPhaser.d.ts +9 -7
- package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
- package/typings/classes/AudioEffectReverb.d.ts +17 -8
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
- package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
- package/typings/classes/AudioServer.d.ts +2 -2
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BaseButton.d.ts +1 -1
- package/typings/classes/Basis.d.ts +6 -2
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/CPUParticles2D.d.ts +2 -2
- package/typings/classes/CPUParticles3D.d.ts +2 -2
- package/typings/classes/Camera3D.d.ts +1 -1
- package/typings/classes/CameraAttributes.d.ts +1 -0
- package/typings/classes/CameraFeed.d.ts +4 -0
- package/typings/classes/CanvasItem.d.ts +16 -1
- package/typings/classes/CodeEdit.d.ts +6 -0
- package/typings/classes/CollisionObject2D.d.ts +6 -0
- package/typings/classes/CollisionPolygon2D.d.ts +5 -0
- package/typings/classes/CollisionShape2D.d.ts +5 -0
- package/typings/classes/Container.d.ts +7 -0
- package/typings/classes/Control.d.ts +127 -9
- package/typings/classes/Curve.d.ts +26 -1
- package/typings/classes/Curve2D.d.ts +15 -0
- package/typings/classes/Curve3D.d.ts +20 -0
- package/typings/classes/DPITexture.d.ts +14 -0
- package/typings/classes/Decal.d.ts +1 -0
- package/typings/classes/Dictionary.d.ts +1 -0
- package/typings/classes/DirAccess.d.ts +6 -1
- package/typings/classes/DisplayServer.d.ts +161 -9
- package/typings/classes/DrawableTexture2D.d.ts +43 -0
- package/typings/classes/EditorCommandPalette.d.ts +0 -2
- package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
- package/typings/classes/EditorDock.d.ts +10 -5
- package/typings/classes/EditorExportPlatform.d.ts +4 -2
- package/typings/classes/EditorExportPlugin.d.ts +7 -0
- package/typings/classes/EditorFeatureProfile.d.ts +1 -1
- package/typings/classes/EditorFileSystem.d.ts +2 -0
- package/typings/classes/EditorInspector.d.ts +10 -0
- package/typings/classes/EditorInterface.d.ts +6 -4
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
- package/typings/classes/EditorPlugin.d.ts +4 -4
- package/typings/classes/EditorResourcePicker.d.ts +2 -1
- package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
- package/typings/classes/EditorSettings.d.ts +241 -140
- package/typings/classes/EditorSpinSlider.d.ts +6 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
- package/typings/classes/EditorVCSInterface.d.ts +6 -2
- package/typings/classes/Environment.d.ts +7 -2
- package/typings/classes/FileAccess.d.ts +1 -1
- package/typings/classes/FileDialog.d.ts +16 -1
- package/typings/classes/FoldableContainer.d.ts +1 -1
- package/typings/classes/Font.d.ts +15 -3
- package/typings/classes/FontVariation.d.ts +10 -0
- package/typings/classes/GDScript.d.ts +8 -0
- package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
- package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
- package/typings/classes/GDScriptTextDocument.d.ts +27 -0
- package/typings/classes/GDScriptWorkspace.d.ts +17 -0
- package/typings/classes/GPUParticles2D.d.ts +2 -2
- package/typings/classes/GPUParticles3D.d.ts +19 -2
- package/typings/classes/Geometry2D.d.ts +2 -2
- package/typings/classes/GeometryInstance3D.d.ts +1 -1
- package/typings/classes/GradientTexture2D.d.ts +2 -0
- package/typings/classes/Image.d.ts +7 -4
- package/typings/classes/ImageFormatLoader.d.ts +5 -0
- package/typings/classes/ImageTexture.d.ts +0 -2
- package/typings/classes/ImporterMesh.d.ts +6 -0
- package/typings/classes/Input.d.ts +159 -15
- package/typings/classes/InputEvent.d.ts +8 -0
- package/typings/classes/InputEventGesture.d.ts +2 -3
- package/typings/classes/InputEventMouse.d.ts +2 -3
- package/typings/classes/InputEventMouseMotion.d.ts +2 -2
- package/typings/classes/InputEventWithModifiers.d.ts +2 -3
- package/typings/classes/InputMap.d.ts +3 -0
- package/typings/classes/ItemList.d.ts +29 -2
- package/typings/classes/IterateIK3D.d.ts +6 -3
- package/typings/classes/JavaClassWrapper.d.ts +13 -0
- package/typings/classes/JavaScriptBridge.d.ts +1 -1
- package/typings/classes/Joint3D.d.ts +1 -0
- package/typings/classes/Label.d.ts +1 -0
- package/typings/classes/LabelSettings.d.ts +25 -0
- package/typings/classes/Light3D.d.ts +1 -1
- package/typings/classes/Logger.d.ts +1 -1
- package/typings/classes/LookAtModifier3D.d.ts +2 -1
- package/typings/classes/MainLoop.d.ts +4 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/MeshLibrary.d.ts +2 -0
- package/typings/classes/MovieWriter.d.ts +2 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
- package/typings/classes/NativeMenu.d.ts +10 -3
- package/typings/classes/Node.d.ts +15 -5
- package/typings/classes/Node3D.d.ts +6 -4
- package/typings/classes/OS.d.ts +3 -3
- package/typings/classes/Object.d.ts +9 -3
- package/typings/classes/OptimizedTranslation.d.ts +2 -2
- package/typings/classes/OptionButton.d.ts +51 -1
- package/typings/classes/PCKPacker.d.ts +4 -0
- package/typings/classes/PacketPeerExtension.d.ts +1 -1
- package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer2D.d.ts +2 -2
- package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer3D.d.ts +145 -42
- package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
- package/typings/classes/PopupMenu.d.ts +74 -8
- package/typings/classes/PopupPanel.d.ts +2 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
- package/typings/classes/ProjectSettings.d.ts +62 -10
- package/typings/classes/Quaternion.d.ts +2 -2
- package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
- package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
- package/typings/classes/RDHitGroup.d.ts +20 -0
- package/typings/classes/RDPipelineShader.d.ts +14 -0
- package/typings/classes/RDShaderSPIRV.d.ts +30 -0
- package/typings/classes/RDShaderSource.d.ts +10 -0
- package/typings/classes/RandomNumberGenerator.d.ts +4 -2
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
- package/typings/classes/RenderingDevice.d.ts +175 -1
- package/typings/classes/RenderingServer.d.ts +264 -14
- package/typings/classes/Resource.d.ts +4 -2
- package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
- package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
- package/typings/classes/ResourceImporterSVG.d.ts +10 -0
- package/typings/classes/ResourceImporterScene.d.ts +11 -3
- package/typings/classes/ResourceImporterTexture.d.ts +2 -2
- package/typings/classes/RichTextLabel.d.ts +14 -6
- package/typings/classes/Script.d.ts +2 -0
- package/typings/classes/ScriptEditor.d.ts +13 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
- package/typings/classes/ScrollContainer.d.ts +17 -5
- package/typings/classes/Shader.d.ts +2 -0
- package/typings/classes/Shape3D.d.ts +1 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
- package/typings/classes/SplitContainer.d.ts +6 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
- package/typings/classes/SpriteFrames.d.ts +20 -4
- package/typings/classes/StreamPeerExtension.d.ts +2 -2
- package/typings/classes/String.d.ts +1 -1
- package/typings/classes/SubViewport.d.ts +4 -0
- package/typings/classes/TabBar.d.ts +20 -0
- package/typings/classes/TabContainer.d.ts +21 -3
- package/typings/classes/TextEdit.d.ts +5 -2
- package/typings/classes/TextServer.d.ts +25 -1
- package/typings/classes/TextServerExtension.d.ts +25 -1
- package/typings/classes/Texture2D.d.ts +14 -0
- package/typings/classes/TextureRect.d.ts +4 -1
- package/typings/classes/TileSet.d.ts +3 -1
- package/typings/classes/Tree.d.ts +25 -9
- package/typings/classes/TreeItem.d.ts +17 -2
- package/typings/classes/Tween.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +2 -2
- package/typings/classes/Vector2.d.ts +4 -2
- package/typings/classes/Vector2i.d.ts +4 -2
- package/typings/classes/Vector3.d.ts +4 -2
- package/typings/classes/Vector3i.d.ts +4 -2
- package/typings/classes/Vector4.d.ts +4 -2
- package/typings/classes/Vector4i.d.ts +4 -2
- package/typings/classes/Viewport.d.ts +27 -1
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VoxelGIData.d.ts +10 -0
- package/typings/classes/Window.d.ts +41 -4
- package/typings/classes/XRCamera3D.d.ts +1 -1
- package/typings/classes/XRServer.d.ts +2 -0
- package/typings/classes/_globals.d.ts +55 -18
- package/typings/classes/index.d.ts +15 -112
- package/typings/godot-class-registry.json +2120 -3693
- package/typings/classes/VisualShader.d.ts +0 -110
- package/typings/classes/VisualShaderNode.d.ts +0 -63
- package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
- package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
- package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
- package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
- package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
- package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
- package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
- package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
- package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
- package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
- package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
- package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
|
@@ -93,10 +93,10 @@ declare class PhysicsServer2DExtension extends PhysicsServer2D {
|
|
|
93
93
|
/** Overridable version of {@link PhysicsServer2D.body_clear_shapes}. */
|
|
94
94
|
_body_clear_shapes(body: RID): void;
|
|
95
95
|
/**
|
|
96
|
-
* Given a `body`, a `shape`, and their respective parameters, this method should return `true` if a collision between the two would occur, with additional details passed in `
|
|
96
|
+
* Given a `body`, a `shape`, and their respective parameters, this method should return `true` if a collision between the two would occur, with additional details passed in `r_results`.
|
|
97
97
|
* Overridable version of {@link PhysicsServer2D}'s internal `shape_collide` method. Corresponds to {@link PhysicsDirectSpaceState2D.collide_shape}.
|
|
98
98
|
*/
|
|
99
|
-
_body_collide_shape(body: RID, body_shape: int, shape: RID, shape_xform: Transform2D, motion: Vector2 | Vector2i,
|
|
99
|
+
_body_collide_shape(body: RID, body_shape: int, shape: RID, shape_xform: Transform2D, motion: Vector2 | Vector2i, r_results: void, result_max: int, r_result_count: int): boolean;
|
|
100
100
|
/** Overridable version of {@link PhysicsServer2D.body_create}. */
|
|
101
101
|
_body_create(): RID;
|
|
102
102
|
/** Overridable version of {@link PhysicsServer2D.body_get_canvas_instance_id}. */
|
|
@@ -188,7 +188,7 @@ declare class PhysicsServer2DExtension extends PhysicsServer2D {
|
|
|
188
188
|
/** Overridable version of {@link PhysicsServer2D.body_set_shape}. */
|
|
189
189
|
_body_set_shape(body: RID, shape_idx: int, shape: RID): void;
|
|
190
190
|
/** Overridable version of {@link PhysicsServer2D.body_set_shape_as_one_way_collision}. */
|
|
191
|
-
_body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float): void;
|
|
191
|
+
_body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float, direction: Vector2 | Vector2i): void;
|
|
192
192
|
/** Overridable version of {@link PhysicsServer2D.body_set_shape_disabled}. */
|
|
193
193
|
_body_set_shape_disabled(body: RID, shape_idx: int, disabled: boolean): void;
|
|
194
194
|
/** Overridable version of {@link PhysicsServer2D.body_set_shape_transform}. */
|
|
@@ -205,7 +205,7 @@ declare class PhysicsServer2DExtension extends PhysicsServer2D {
|
|
|
205
205
|
/**
|
|
206
206
|
* Overridable version of {@link PhysicsServer2D.body_test_motion}. Unlike the exposed implementation, this method does not receive all of the arguments inside a {@link PhysicsTestMotionParameters2D}.
|
|
207
207
|
*/
|
|
208
|
-
_body_test_motion(body: RID, from_: Transform2D, motion: Vector2 | Vector2i, margin: float, collide_separation_ray: boolean, recovery_as_collision: boolean,
|
|
208
|
+
_body_test_motion(body: RID, from_: Transform2D, motion: Vector2 | Vector2i, margin: float, collide_separation_ray: boolean, recovery_as_collision: boolean, r_result: unknown): boolean;
|
|
209
209
|
/** Overridable version of {@link PhysicsServer2D.capsule_shape_create}. */
|
|
210
210
|
_capsule_shape_create(): RID;
|
|
211
211
|
/** Overridable version of {@link PhysicsServer2D.circle_shape_create}. */
|
|
@@ -284,10 +284,10 @@ declare class PhysicsServer2DExtension extends PhysicsServer2D {
|
|
|
284
284
|
/** Overridable version of {@link PhysicsServer2D.set_active}. */
|
|
285
285
|
_set_active(active: boolean): void;
|
|
286
286
|
/**
|
|
287
|
-
* Given two shapes and their parameters, should return `true` if a collision between the two would occur, with additional details passed in `
|
|
287
|
+
* Given two shapes and their parameters, should return `true` if a collision between the two would occur, with additional details passed in `r_results`.
|
|
288
288
|
* Overridable version of {@link PhysicsServer2D}'s internal `shape_collide` method. Corresponds to {@link PhysicsDirectSpaceState2D.collide_shape}.
|
|
289
289
|
*/
|
|
290
|
-
_shape_collide(shape_A: RID, xform_A: Transform2D, motion_A: Vector2 | Vector2i, shape_B: RID, xform_B: Transform2D, motion_B: Vector2 | Vector2i,
|
|
290
|
+
_shape_collide(shape_A: RID, xform_A: Transform2D, motion_A: Vector2 | Vector2i, shape_B: RID, xform_B: Transform2D, motion_B: Vector2 | Vector2i, r_results: void, result_max: int, r_result_count: int): boolean;
|
|
291
291
|
/**
|
|
292
292
|
* Should return the custom solver bias of the given `shape`, which defines how much bodies are forced to separate on contact when this shape is involved.
|
|
293
293
|
* Overridable version of {@link PhysicsServer2D}'s internal `shape_get_custom_solver_bias` method. Corresponds to {@link Shape2D.custom_solver_bias}.
|
|
@@ -329,7 +329,10 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
329
329
|
joint_create(): RID;
|
|
330
330
|
/** Sets whether the bodies attached to the {@link Joint3D} will collide with each other. */
|
|
331
331
|
joint_disable_collisions_between_bodies(joint: RID, disable: boolean): void;
|
|
332
|
-
/**
|
|
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
|
+
*/
|
|
333
336
|
joint_get_solver_priority(joint: RID): int;
|
|
334
337
|
/** Returns the type of the Joint3D. */
|
|
335
338
|
joint_get_type(joint: RID): int;
|
|
@@ -343,7 +346,10 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
343
346
|
joint_make_hinge(joint: RID, body_A: RID, hinge_A: Transform3D | Projection, body_B: RID, hinge_B: Transform3D | Projection): void;
|
|
344
347
|
joint_make_pin(joint: RID, body_A: RID, local_A: Vector3 | Vector3i, body_B: RID, local_B: Vector3 | Vector3i): void;
|
|
345
348
|
joint_make_slider(joint: RID, body_A: RID, local_ref_A: Transform3D | Projection, body_B: RID, local_ref_B: Transform3D | Projection): void;
|
|
346
|
-
/**
|
|
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
|
+
*/
|
|
347
353
|
joint_set_solver_priority(joint: RID, priority: int): void;
|
|
348
354
|
/** Returns position of the joint in the local space of body a of the joint. */
|
|
349
355
|
pin_joint_get_local_a(joint: RID): Vector3;
|
|
@@ -548,28 +554,43 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
548
554
|
readonly JOINT_TYPE_MAX: int;
|
|
549
555
|
// enum PinJointParam
|
|
550
556
|
/**
|
|
551
|
-
* The strength with which the pinned objects try to stay in positional relation to each other.
|
|
552
|
-
*
|
|
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.
|
|
553
559
|
*/
|
|
554
560
|
readonly PIN_JOINT_BIAS: int;
|
|
555
561
|
/**
|
|
556
|
-
* The strength with which the pinned objects try to stay in velocity relation to each other.
|
|
557
|
-
*
|
|
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.
|
|
558
564
|
*/
|
|
559
565
|
readonly PIN_JOINT_DAMPING: int;
|
|
560
|
-
/**
|
|
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
|
+
*/
|
|
561
570
|
readonly PIN_JOINT_IMPULSE_CLAMP: int;
|
|
562
571
|
// enum HingeJointParam
|
|
563
|
-
/**
|
|
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
|
+
*/
|
|
564
576
|
readonly HINGE_JOINT_BIAS: int;
|
|
565
577
|
/** The maximum rotation across the Hinge. */
|
|
566
578
|
readonly HINGE_JOINT_LIMIT_UPPER: int;
|
|
567
579
|
/** The minimum rotation across the Hinge. */
|
|
568
580
|
readonly HINGE_JOINT_LIMIT_LOWER: int;
|
|
569
|
-
/**
|
|
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
|
+
*/
|
|
570
585
|
readonly HINGE_JOINT_LIMIT_BIAS: int;
|
|
586
|
+
/**
|
|
587
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
588
|
+
*/
|
|
571
589
|
readonly HINGE_JOINT_LIMIT_SOFTNESS: int;
|
|
572
|
-
/**
|
|
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
|
+
*/
|
|
573
594
|
readonly HINGE_JOINT_LIMIT_RELAXATION: int;
|
|
574
595
|
/** Target speed for the motor. */
|
|
575
596
|
readonly HINGE_JOINT_MOTOR_TARGET_VELOCITY: int;
|
|
@@ -587,49 +608,103 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
587
608
|
readonly SLIDER_JOINT_LINEAR_LIMIT_LOWER: int;
|
|
588
609
|
/**
|
|
589
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.
|
|
590
612
|
*/
|
|
591
613
|
readonly SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS: int;
|
|
592
614
|
/**
|
|
593
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.
|
|
594
617
|
*/
|
|
595
618
|
readonly SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION: int;
|
|
596
|
-
/**
|
|
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
|
+
*/
|
|
597
623
|
readonly SLIDER_JOINT_LINEAR_LIMIT_DAMPING: int;
|
|
598
624
|
/**
|
|
599
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.
|
|
600
627
|
*/
|
|
601
628
|
readonly SLIDER_JOINT_LINEAR_MOTION_SOFTNESS: int;
|
|
602
|
-
/**
|
|
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
|
+
*/
|
|
603
633
|
readonly SLIDER_JOINT_LINEAR_MOTION_RESTITUTION: int;
|
|
604
|
-
/**
|
|
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
|
+
*/
|
|
605
638
|
readonly SLIDER_JOINT_LINEAR_MOTION_DAMPING: int;
|
|
606
|
-
/**
|
|
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
|
+
*/
|
|
607
643
|
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS: int;
|
|
608
|
-
/**
|
|
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
|
+
*/
|
|
609
648
|
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION: int;
|
|
610
|
-
/**
|
|
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
|
+
*/
|
|
611
653
|
readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING: int;
|
|
612
|
-
/**
|
|
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
|
+
*/
|
|
613
658
|
readonly SLIDER_JOINT_ANGULAR_LIMIT_UPPER: int;
|
|
614
|
-
/**
|
|
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
|
+
*/
|
|
615
663
|
readonly SLIDER_JOINT_ANGULAR_LIMIT_LOWER: int;
|
|
616
|
-
/**
|
|
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
|
+
*/
|
|
617
668
|
readonly SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
|
|
618
|
-
/**
|
|
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
|
+
*/
|
|
619
673
|
readonly SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION: int;
|
|
620
|
-
/**
|
|
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
|
+
*/
|
|
621
678
|
readonly SLIDER_JOINT_ANGULAR_LIMIT_DAMPING: int;
|
|
622
|
-
/**
|
|
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
|
+
*/
|
|
623
683
|
readonly SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS: int;
|
|
624
|
-
/**
|
|
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
|
+
*/
|
|
625
688
|
readonly SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION: int;
|
|
626
|
-
/**
|
|
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
|
+
*/
|
|
627
693
|
readonly SLIDER_JOINT_ANGULAR_MOTION_DAMPING: int;
|
|
628
|
-
/**
|
|
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
|
+
*/
|
|
629
698
|
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS: int;
|
|
630
|
-
/**
|
|
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
|
+
*/
|
|
631
703
|
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION: int;
|
|
632
|
-
/**
|
|
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
|
+
*/
|
|
633
708
|
readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING: int;
|
|
634
709
|
/** Represents the size of the {@link SliderJointParam} enum. */
|
|
635
710
|
readonly SLIDER_JOINT_MAX: int;
|
|
@@ -637,34 +712,47 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
637
712
|
/**
|
|
638
713
|
* Swing is rotation from side to side, around the axis perpendicular to the twist axis.
|
|
639
714
|
* The swing span defines, how much rotation will not get corrected along the swing axis.
|
|
640
|
-
* Could be defined as looseness in the {@link ConeTwistJoint3D}.
|
|
641
|
-
* If below 0.05, this behavior is locked.
|
|
715
|
+
* Could be defined as looseness in the {@link ConeTwistJoint3D}. If below 0.05, this behavior is locked.
|
|
642
716
|
*/
|
|
643
717
|
readonly CONE_TWIST_JOINT_SWING_SPAN: int;
|
|
644
718
|
/**
|
|
645
|
-
* Twist is the rotation around the twist axis, this value defined how far the joint can twist.
|
|
646
|
-
* Twist is locked if below 0.05.
|
|
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.
|
|
647
720
|
*/
|
|
648
721
|
readonly CONE_TWIST_JOINT_TWIST_SPAN: int;
|
|
649
722
|
/**
|
|
650
|
-
* The speed with which the swing or twist will take place.
|
|
651
|
-
*
|
|
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.
|
|
652
725
|
*/
|
|
653
726
|
readonly CONE_TWIST_JOINT_BIAS: int;
|
|
654
|
-
/**
|
|
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
|
+
*/
|
|
655
731
|
readonly CONE_TWIST_JOINT_SOFTNESS: int;
|
|
656
|
-
/**
|
|
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
|
+
*/
|
|
657
736
|
readonly CONE_TWIST_JOINT_RELAXATION: int;
|
|
658
737
|
// enum G6DOFJointAxisParam
|
|
659
738
|
/** The minimum difference between the pivot points' axes. */
|
|
660
739
|
readonly G6DOF_JOINT_LINEAR_LOWER_LIMIT: int;
|
|
661
740
|
/** The maximum difference between the pivot points' axes. */
|
|
662
741
|
readonly G6DOF_JOINT_LINEAR_UPPER_LIMIT: int;
|
|
663
|
-
/**
|
|
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
|
+
*/
|
|
664
746
|
readonly G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS: int;
|
|
665
|
-
/**
|
|
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
|
+
*/
|
|
666
751
|
readonly G6DOF_JOINT_LINEAR_RESTITUTION: int;
|
|
667
|
-
/**
|
|
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
|
+
*/
|
|
668
756
|
readonly G6DOF_JOINT_LINEAR_DAMPING: int;
|
|
669
757
|
/** The velocity that the joint's linear motor will attempt to reach. */
|
|
670
758
|
readonly G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY: int;
|
|
@@ -677,16 +765,29 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
677
765
|
readonly G6DOF_JOINT_ANGULAR_LOWER_LIMIT: int;
|
|
678
766
|
/** The minimum rotation in positive direction to break loose and rotate around the axes. */
|
|
679
767
|
readonly G6DOF_JOINT_ANGULAR_UPPER_LIMIT: int;
|
|
680
|
-
/**
|
|
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
|
+
*/
|
|
681
772
|
readonly G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
|
|
682
|
-
/**
|
|
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
|
+
*/
|
|
683
777
|
readonly G6DOF_JOINT_ANGULAR_DAMPING: int;
|
|
684
|
-
/**
|
|
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
|
+
*/
|
|
685
782
|
readonly G6DOF_JOINT_ANGULAR_RESTITUTION: int;
|
|
686
|
-
/**
|
|
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
|
+
*/
|
|
687
787
|
readonly G6DOF_JOINT_ANGULAR_FORCE_LIMIT: int;
|
|
688
788
|
/**
|
|
689
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.
|
|
690
791
|
*/
|
|
691
792
|
readonly G6DOF_JOINT_ANGULAR_ERP: int;
|
|
692
793
|
/** Target speed for the motor at the axes. */
|
|
@@ -896,10 +997,12 @@ declare interface PhysicsServer3D extends GodotObject {
|
|
|
896
997
|
readonly SPACE_PARAM_CONTACT_DEFAULT_BIAS: int;
|
|
897
998
|
/**
|
|
898
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.
|
|
899
1001
|
*/
|
|
900
1002
|
readonly SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
901
1003
|
/**
|
|
902
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.
|
|
903
1006
|
*/
|
|
904
1007
|
readonly SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: int;
|
|
905
1008
|
/**
|
|
@@ -91,7 +91,7 @@ declare class PhysicsServer3DExtension extends PhysicsServer3D {
|
|
|
91
91
|
_body_set_state(body: RID, state: int, value: unknown): void;
|
|
92
92
|
_body_set_state_sync_callback(body: RID, callable: Callable): void;
|
|
93
93
|
_body_set_user_flags(body: RID, flags: int): void;
|
|
94
|
-
_body_test_motion(body: RID, from_: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, max_collisions: int, collide_separation_ray: boolean, recovery_as_collision: boolean,
|
|
94
|
+
_body_test_motion(body: RID, from_: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, max_collisions: int, collide_separation_ray: boolean, recovery_as_collision: boolean, r_result: unknown): boolean;
|
|
95
95
|
_box_shape_create(): RID;
|
|
96
96
|
_capsule_shape_create(): RID;
|
|
97
97
|
_concave_polygon_shape_create(): RID;
|
|
@@ -5,19 +5,76 @@
|
|
|
5
5
|
declare class PopupMenu extends Popup {
|
|
6
6
|
/** If `true`, allows navigating {@link PopupMenu} with letter keys. */
|
|
7
7
|
allow_search: boolean;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* <member name="canvas_item_default_texture_repeat" type="int" setter="set_default_canvas_item_texture_repeat" getter="get_default_canvas_item_texture_repeat" overrides="Viewport" enum="Viewport.DefaultCanvasItemTextureRepeat" default="3" />
|
|
10
|
+
* <member name="hide_on_checkable_item_selection" type="bool" setter="set_hide_on_checkable_item_selection" getter="is_hide_on_checkable_item_selection" default="true">
|
|
11
|
+
* If `true`, hides the {@link PopupMenu} when a checkbox or radio button is selected.
|
|
12
|
+
*/
|
|
13
|
+
canvas_item_default_texture_filter: int;
|
|
10
14
|
/** If `true`, hides the {@link PopupMenu} when an item is selected. */
|
|
11
15
|
hide_on_item_selection: boolean;
|
|
12
16
|
/** If `true`, hides the {@link PopupMenu} when a state item is selected. */
|
|
13
17
|
hide_on_state_item_selection: boolean;
|
|
14
18
|
/** The number of items currently in the list. */
|
|
15
19
|
item_count: int;
|
|
20
|
+
/**
|
|
21
|
+
* The checkable item type of the item at `index`.
|
|
22
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
23
|
+
*/
|
|
24
|
+
'item_{index}/checkable': int;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the item at `index` is checked.
|
|
27
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
28
|
+
*/
|
|
29
|
+
'item_{index}/checked': boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, the item at `index` is disabled.
|
|
32
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
33
|
+
*/
|
|
34
|
+
'item_{index}/disabled': boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The icon of the item at `index`.
|
|
37
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
38
|
+
*/
|
|
39
|
+
'item_{index}/icon': Texture2D | null;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the item at `index`.
|
|
42
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
43
|
+
*/
|
|
44
|
+
'item_{index}/id': int;
|
|
45
|
+
/**
|
|
46
|
+
* If `true`, the item at `index` is a separator.
|
|
47
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
48
|
+
*/
|
|
49
|
+
'item_{index}/separator': boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The text of the item at `index`.
|
|
52
|
+
* **Note:** `index` is a value in the `0 .. item_count - 1` range.
|
|
53
|
+
*/
|
|
54
|
+
'item_{index}/text': string;
|
|
16
55
|
/**
|
|
17
56
|
* If `true`, {@link MenuBar} will use native menu when supported.
|
|
18
57
|
* **Note:** If {@link PopupMenu} is linked to {@link StatusIndicator}, {@link MenuBar}, or another {@link PopupMenu} item it can use native menu regardless of this property, use {@link is_native_menu} to check it.
|
|
19
58
|
*/
|
|
20
59
|
prefer_native_menu: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* If `true`, shows a search bar at the top of the {@link PopupMenu} for filtering items. See {@link search_bar_min_item_count} for dynamically controlling its visibility based on the number of items.
|
|
62
|
+
* **Note:** When enabled, {@link allow_search} is ignored.
|
|
63
|
+
*/
|
|
64
|
+
search_bar_enabled: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* If `true`, enables fuzzy searching in the {@link PopupMenu} search bar. This allows the search results to include items that almost match the search query, as well items that match the individual characters of the search query, but not in sequence.
|
|
67
|
+
* Use {@link search_bar_fuzzy_search_max_misses} to set the maximum number of mismatches allowed in the search results.
|
|
68
|
+
*/
|
|
69
|
+
search_bar_fuzzy_search_enabled: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the maximum number of mismatches allowed in each search result when fuzzy searching is enabled for the {@link PopupMenu} search bar. Any item with more mismatches will be hidden from the search results.
|
|
72
|
+
*/
|
|
73
|
+
search_bar_fuzzy_search_max_misses: int;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the minimum number of items required for the search bar to be visible. {@link search_bar_enabled} must be `true` for this to have any effect. Separator items are not counted.
|
|
76
|
+
*/
|
|
77
|
+
search_bar_min_item_count: int;
|
|
21
78
|
/** If `true`, shrinks {@link PopupMenu} to minimum height when it's shown. */
|
|
22
79
|
shrink_height: boolean;
|
|
23
80
|
/** If `true`, shrinks {@link PopupMenu} to minimum width when it's shown. */
|
|
@@ -35,8 +92,6 @@ declare class PopupMenu extends Popup {
|
|
|
35
92
|
transparent_bg: boolean;
|
|
36
93
|
set_allow_search(value: boolean): void;
|
|
37
94
|
get_allow_search(): boolean;
|
|
38
|
-
set_hide_on_checkable_item_selection(value: boolean): void;
|
|
39
|
-
is_hide_on_checkable_item_selection(): boolean;
|
|
40
95
|
set_hide_on_item_selection(value: boolean): void;
|
|
41
96
|
is_hide_on_item_selection(): boolean;
|
|
42
97
|
set_hide_on_state_item_selection(value: boolean): void;
|
|
@@ -45,6 +100,14 @@ declare class PopupMenu extends Popup {
|
|
|
45
100
|
get_item_count(): int;
|
|
46
101
|
set_prefer_native_menu(value: boolean): void;
|
|
47
102
|
is_prefer_native_menu(): boolean;
|
|
103
|
+
set_search_bar_enabled(value: boolean): void;
|
|
104
|
+
is_search_bar_enabled(): boolean;
|
|
105
|
+
set_search_bar_fuzzy_search_enabled(value: boolean): void;
|
|
106
|
+
is_search_bar_fuzzy_search_enabled(): boolean;
|
|
107
|
+
set_search_bar_fuzzy_search_max_misses(value: int): void;
|
|
108
|
+
get_search_bar_fuzzy_search_max_misses(): int;
|
|
109
|
+
set_search_bar_min_item_count(value: int): void;
|
|
110
|
+
get_search_bar_min_item_count(): int;
|
|
48
111
|
set_shrink_height(value: boolean): void;
|
|
49
112
|
get_shrink_height(): boolean;
|
|
50
113
|
set_shrink_width(value: boolean): void;
|
|
@@ -164,14 +227,12 @@ declare class PopupMenu extends Popup {
|
|
|
164
227
|
get_item_icon_max_width(index: int): int;
|
|
165
228
|
/** Returns a {@link Color} modulating the item's icon at the given `index`. */
|
|
166
229
|
get_item_icon_modulate(index: int): Color;
|
|
167
|
-
/**
|
|
168
|
-
* Returns the ID of the item at the given `index`. `id` can be manually assigned, while index can not.
|
|
169
|
-
*/
|
|
230
|
+
/** Returns the ID of the item at the given `index`. */
|
|
170
231
|
get_item_id(index: int): int;
|
|
171
232
|
/** Returns the horizontal offset of the item at the given `index`. */
|
|
172
233
|
get_item_indent(index: int): int;
|
|
173
234
|
/**
|
|
174
|
-
* Returns the index of the item containing the specified `id`.
|
|
235
|
+
* Returns the index of the item containing the specified `id`. The index is automatically assigned to each item by the engine when added and represents the order items will be displayed.
|
|
175
236
|
*/
|
|
176
237
|
get_item_index(id: int): int;
|
|
177
238
|
/** Returns item's text language code. */
|
|
@@ -282,6 +343,11 @@ declare class PopupMenu extends Popup {
|
|
|
282
343
|
set_item_id(index: int, id: int): void;
|
|
283
344
|
/** Sets the horizontal offset of the item at the given `index`. */
|
|
284
345
|
set_item_indent(index: int, indent: int): void;
|
|
346
|
+
/**
|
|
347
|
+
* Changes the index of the item at index `index` to be at index `target_index`. This can be used to move an item above other items. The moved item will keep the same ID, even if it was generated from the original index.
|
|
348
|
+
* **Note:** The indices of any items between index `index` and index `target_index` will be shifted by one.
|
|
349
|
+
*/
|
|
350
|
+
set_item_index(index: int, target_index: int): void;
|
|
285
351
|
/**
|
|
286
352
|
* Sets the language code of the text for the item at the given index to `language`. This is used for line-breaking and text shaping algorithms. If `language` is empty, the current locale is used.
|
|
287
353
|
*/
|
|
@@ -24,8 +24,6 @@ declare class PortableCompressedTexture2D extends Texture2D {
|
|
|
24
24
|
create_from_image(image: Image, compression_mode: int, normal_map?: boolean, lossy_quality?: float): void;
|
|
25
25
|
/** Return the compression mode used (valid after initialized). */
|
|
26
26
|
get_compression_mode(): int;
|
|
27
|
-
/** Return the image format used (valid after initialized). */
|
|
28
|
-
get_format(): int;
|
|
29
27
|
/** Returns `true` if the flag is overridden for all textures of this type. */
|
|
30
28
|
static is_keeping_all_compressed_buffers(): boolean;
|
|
31
29
|
/**
|