@ringozz/godot 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/gen/classes/AESContext.ts +99 -0
- package/gen/classes/AStar2D.ts +222 -0
- package/gen/classes/AStar3D.ts +247 -0
- package/gen/classes/AStarGrid2D.ts +284 -0
- package/gen/classes/AcceptDialog.ts +104 -0
- package/gen/classes/AccessibilityServer.ts +824 -0
- package/gen/classes/AimModifier3D.ts +75 -0
- package/gen/classes/AnimatableBody2D.ts +21 -0
- package/gen/classes/AnimatableBody3D.ts +21 -0
- package/gen/classes/AnimatedSprite2D.ts +160 -0
- package/gen/classes/AnimatedSprite3D.ts +134 -0
- package/gen/classes/AnimatedTexture.ts +74 -0
- package/gen/classes/Animation.ts +596 -0
- package/gen/classes/AnimationLibrary.ts +77 -0
- package/gen/classes/AnimationMixer.ts +450 -0
- package/gen/classes/AnimationNode.ts +159 -0
- package/gen/classes/AnimationNodeAdd2.ts +16 -0
- package/gen/classes/AnimationNodeAdd3.ts +20 -0
- package/gen/classes/AnimationNodeAnimation.ts +84 -0
- package/gen/classes/AnimationNodeBlend2.ts +15 -0
- package/gen/classes/AnimationNodeBlend3.ts +19 -0
- package/gen/classes/AnimationNodeBlendSpace1D.ts +162 -0
- package/gen/classes/AnimationNodeBlendSpace2D.ts +204 -0
- package/gen/classes/AnimationNodeBlendTree.ts +110 -0
- package/gen/classes/AnimationNodeExtension.ts +25 -0
- package/gen/classes/AnimationNodeOneShot.ts +144 -0
- package/gen/classes/AnimationNodeOutput.ts +14 -0
- package/gen/classes/AnimationNodeStateMachine.ts +163 -0
- package/gen/classes/AnimationNodeStateMachinePlayback.ts +111 -0
- package/gen/classes/AnimationNodeStateMachineTransition.ts +120 -0
- package/gen/classes/AnimationNodeSub2.ts +17 -0
- package/gen/classes/AnimationNodeSync.ts +21 -0
- package/gen/classes/AnimationNodeTimeScale.ts +14 -0
- package/gen/classes/AnimationNodeTimeSeek.ts +36 -0
- package/gen/classes/AnimationNodeTransition.ts +92 -0
- package/gen/classes/AnimationPlayer.ts +319 -0
- package/gen/classes/AnimationRootNode.ts +15 -0
- package/gen/classes/AnimationTree.ts +60 -0
- package/gen/classes/Area2D.ts +252 -0
- package/gen/classes/Area3D.ts +305 -0
- package/gen/classes/AreaLight3D.ts +56 -0
- package/gen/classes/ArrayMesh.ts +177 -0
- package/gen/classes/ArrayOccluder3D.ts +35 -0
- package/gen/classes/AspectRatioContainer.ts +78 -0
- package/gen/classes/AtlasTexture.ts +42 -0
- package/gen/classes/AudioBusLayout.ts +14 -0
- package/gen/classes/AudioEffect.ts +16 -0
- package/gen/classes/AudioEffectAmplify.ts +27 -0
- package/gen/classes/AudioEffectBandLimitFilter.ts +15 -0
- package/gen/classes/AudioEffectBandPassFilter.ts +15 -0
- package/gen/classes/AudioEffectCapture.ts +62 -0
- package/gen/classes/AudioEffectChorus.ts +95 -0
- package/gen/classes/AudioEffectCompressor.ts +62 -0
- package/gen/classes/AudioEffectDelay.ts +93 -0
- package/gen/classes/AudioEffectDistortion.ts +75 -0
- package/gen/classes/AudioEffectEQ.ts +30 -0
- package/gen/classes/AudioEffectEQ10.ts +25 -0
- package/gen/classes/AudioEffectEQ21.ts +36 -0
- package/gen/classes/AudioEffectEQ6.ts +21 -0
- package/gen/classes/AudioEffectFilter.ts +68 -0
- package/gen/classes/AudioEffectHardLimiter.ts +34 -0
- package/gen/classes/AudioEffectHighPassFilter.ts +15 -0
- package/gen/classes/AudioEffectHighShelfFilter.ts +15 -0
- package/gen/classes/AudioEffectInstance.ts +14 -0
- package/gen/classes/AudioEffectLimiter.ts +40 -0
- package/gen/classes/AudioEffectLowPassFilter.ts +15 -0
- package/gen/classes/AudioEffectLowShelfFilter.ts +15 -0
- package/gen/classes/AudioEffectNotchFilter.ts +15 -0
- package/gen/classes/AudioEffectPanner.ts +21 -0
- package/gen/classes/AudioEffectPhaser.ts +45 -0
- package/gen/classes/AudioEffectPitchShift.ts +62 -0
- package/gen/classes/AudioEffectRecord.ts +39 -0
- package/gen/classes/AudioEffectReverb.ts +63 -0
- package/gen/classes/AudioEffectSpectrumAnalyzer.ts +57 -0
- package/gen/classes/AudioEffectSpectrumAnalyzerInstance.ts +35 -0
- package/gen/classes/AudioEffectStereoEnhance.ts +32 -0
- package/gen/classes/AudioListener2D.ts +31 -0
- package/gen/classes/AudioListener3D.ts +61 -0
- package/gen/classes/AudioSample.ts +14 -0
- package/gen/classes/AudioSamplePlayback.ts +14 -0
- package/gen/classes/AudioServer.ts +360 -0
- package/gen/classes/AudioStream.ts +53 -0
- package/gen/classes/AudioStreamGenerator.ts +88 -0
- package/gen/classes/AudioStreamGeneratorPlayback.ts +45 -0
- package/gen/classes/AudioStreamInteractive.ts +216 -0
- package/gen/classes/AudioStreamMP3.ts +74 -0
- package/gen/classes/AudioStreamMicrophone.ts +15 -0
- package/gen/classes/AudioStreamOggVorbis.ts +71 -0
- package/gen/classes/AudioStreamPlayback.ts +63 -0
- package/gen/classes/AudioStreamPlaybackInteractive.ts +37 -0
- package/gen/classes/AudioStreamPlaybackOggVorbis.ts +14 -0
- package/gen/classes/AudioStreamPlaybackPlaylist.ts +13 -0
- package/gen/classes/AudioStreamPlaybackPolyphonic.ts +49 -0
- package/gen/classes/AudioStreamPlaybackResampled.ts +19 -0
- package/gen/classes/AudioStreamPlaybackSynchronized.ts +13 -0
- package/gen/classes/AudioStreamPlayer.ts +146 -0
- package/gen/classes/AudioStreamPlayer2D.ts +143 -0
- package/gen/classes/AudioStreamPlayer3D.ts +233 -0
- package/gen/classes/AudioStreamPlaylist.ts +240 -0
- package/gen/classes/AudioStreamPolyphonic.ts +21 -0
- package/gen/classes/AudioStreamRandomizer.ts +99 -0
- package/gen/classes/AudioStreamSynchronized.ts +45 -0
- package/gen/classes/AudioStreamWAV.ts +151 -0
- package/gen/classes/AwaitTweener.ts +20 -0
- package/gen/classes/BackBufferCopy.ts +46 -0
- package/gen/classes/BaseButton.ts +164 -0
- package/gen/classes/BaseMaterial3D.ts +1477 -0
- package/gen/classes/BitMap.ts +94 -0
- package/gen/classes/BlitMaterial.ts +46 -0
- package/gen/classes/Bone2D.ts +71 -0
- package/gen/classes/BoneAttachment3D.ts +57 -0
- package/gen/classes/BoneConstraint3D.ts +122 -0
- package/gen/classes/BoneMap.ts +53 -0
- package/gen/classes/BoneTwistDisperser3D.ts +209 -0
- package/gen/classes/BoxContainer.ts +51 -0
- package/gen/classes/BoxMesh.ts +41 -0
- package/gen/classes/BoxOccluder3D.ts +22 -0
- package/gen/classes/BoxShape3D.ts +22 -0
- package/gen/classes/Button.ts +117 -0
- package/gen/classes/ButtonGroup.ts +39 -0
- package/gen/classes/CCDIK3D.ts +16 -0
- package/gen/classes/CPUParticles2D.ts +590 -0
- package/gen/classes/CPUParticles3D.ts +650 -0
- package/gen/classes/CSGBox3D.ts +29 -0
- package/gen/classes/CSGCombiner3D.ts +15 -0
- package/gen/classes/CSGCylinder3D.ts +52 -0
- package/gen/classes/CSGMesh3D.ts +32 -0
- package/gen/classes/CSGPolygon3D.ts +170 -0
- package/gen/classes/CSGPrimitive3D.ts +20 -0
- package/gen/classes/CSGShape3D.ts +140 -0
- package/gen/classes/CSGSphere3D.ts +46 -0
- package/gen/classes/CSGTorus3D.ts +52 -0
- package/gen/classes/CallbackTweener.ts +29 -0
- package/gen/classes/Camera2D.ts +266 -0
- package/gen/classes/Camera3D.ts +275 -0
- package/gen/classes/CameraAttributes.ts +50 -0
- package/gen/classes/CameraAttributesPhysical.ts +73 -0
- package/gen/classes/CameraAttributesPractical.ts +75 -0
- package/gen/classes/CameraFeed.ts +155 -0
- package/gen/classes/CameraServer.ts +105 -0
- package/gen/classes/CameraTexture.ts +34 -0
- package/gen/classes/CanvasGroup.ts +54 -0
- package/gen/classes/CanvasItem.ts +698 -0
- package/gen/classes/CanvasItemMaterial.ts +97 -0
- package/gen/classes/CanvasLayer.ts +103 -0
- package/gen/classes/CanvasModulate.ts +21 -0
- package/gen/classes/CanvasTexture.ts +60 -0
- package/gen/classes/CapsuleMesh.ts +40 -0
- package/gen/classes/CapsuleShape2D.ts +35 -0
- package/gen/classes/CapsuleShape3D.ts +35 -0
- package/gen/classes/CenterContainer.ts +20 -0
- package/gen/classes/ChainIK3D.ts +102 -0
- package/gen/classes/CharFXTransform.ts +108 -0
- package/gen/classes/CharacterBody2D.ts +252 -0
- package/gen/classes/CharacterBody3D.ts +246 -0
- package/gen/classes/CheckBox.ts +16 -0
- package/gen/classes/CheckButton.ts +15 -0
- package/gen/classes/CircleShape2D.ts +21 -0
- package/gen/classes/ClassDB.ts +197 -0
- package/gen/classes/CodeEdit.ts +619 -0
- package/gen/classes/CodeHighlighter.ts +132 -0
- package/gen/classes/CollisionObject2D.ts +235 -0
- package/gen/classes/CollisionObject3D.ts +199 -0
- package/gen/classes/CollisionPolygon2D.ts +70 -0
- package/gen/classes/CollisionPolygon3D.ts +54 -0
- package/gen/classes/CollisionShape2D.ts +55 -0
- package/gen/classes/CollisionShape3D.ts +53 -0
- package/gen/classes/ColorPalette.ts +21 -0
- package/gen/classes/ColorPicker.ts +197 -0
- package/gen/classes/ColorPickerButton.ts +68 -0
- package/gen/classes/ColorRect.ts +21 -0
- package/gen/classes/Compositor.ts +22 -0
- package/gen/classes/CompositorEffect.ts +134 -0
- package/gen/classes/CompressedCubemap.ts +22 -0
- package/gen/classes/CompressedCubemapArray.ts +22 -0
- package/gen/classes/CompressedTexture2D.ts +27 -0
- package/gen/classes/CompressedTexture2DArray.ts +22 -0
- package/gen/classes/CompressedTexture3D.ts +22 -0
- package/gen/classes/CompressedTextureLayered.ts +19 -0
- package/gen/classes/ConcavePolygonShape2D.ts +25 -0
- package/gen/classes/ConcavePolygonShape3D.ts +28 -0
- package/gen/classes/ConeTwistJoint3D.ts +84 -0
- package/gen/classes/ConfigFile.ts +170 -0
- package/gen/classes/ConfirmationDialog.ts +39 -0
- package/gen/classes/Container.ts +54 -0
- package/gen/classes/Control.ts +1499 -0
- package/gen/classes/ConvertTransformModifier3D.ts +153 -0
- package/gen/classes/ConvexPolygonShape2D.ts +30 -0
- package/gen/classes/ConvexPolygonShape3D.ts +24 -0
- package/gen/classes/CopyTransformModifier3D.ts +220 -0
- package/gen/classes/Crypto.ts +114 -0
- package/gen/classes/CryptoKey.ts +43 -0
- package/gen/classes/Cubemap.ts +47 -0
- package/gen/classes/CubemapArray.ts +30 -0
- package/gen/classes/Curve.ts +183 -0
- package/gen/classes/Curve2D.ts +145 -0
- package/gen/classes/Curve3D.ts +173 -0
- package/gen/classes/CurveTexture.ts +48 -0
- package/gen/classes/CurveXYZTexture.ts +40 -0
- package/gen/classes/CylinderMesh.ts +58 -0
- package/gen/classes/CylinderShape3D.ts +28 -0
- package/gen/classes/DPITexture.ts +73 -0
- package/gen/classes/DTLSServer.ts +93 -0
- package/gen/classes/DampedSpringJoint2D.ts +38 -0
- package/gen/classes/Decal.ts +146 -0
- package/gen/classes/DirAccess.ts +300 -0
- package/gen/classes/DirectionalLight2D.ts +28 -0
- package/gen/classes/DirectionalLight3D.ts +104 -0
- package/gen/classes/DisplayServer.ts +3119 -0
- package/gen/classes/DrawableTexture2D.ts +75 -0
- package/gen/classes/ENetConnection.ts +192 -0
- package/gen/classes/ENetMultiplayerPeer.ts +54 -0
- package/gen/classes/ENetPacketPeer.ts +234 -0
- package/gen/classes/EncodedObjectAsID.ts +21 -0
- package/gen/classes/Engine.ts +322 -0
- package/gen/classes/EngineDebugger.ts +136 -0
- package/gen/classes/EngineProfiler.ts +16 -0
- package/gen/classes/Environment.ts +786 -0
- package/gen/classes/Expression.ts +60 -0
- package/gen/classes/ExternalTexture.ts +35 -0
- package/gen/classes/FABRIK3D.ts +16 -0
- package/gen/classes/FBXDocument.ts +15 -0
- package/gen/classes/FBXState.ts +20 -0
- package/gen/classes/FastNoiseLite.ts +284 -0
- package/gen/classes/FileAccess.ts +596 -0
- package/gen/classes/FileDialog.ts +428 -0
- package/gen/classes/FlowContainer.ts +84 -0
- package/gen/classes/FogMaterial.ts +54 -0
- package/gen/classes/FogVolume.ts +39 -0
- package/gen/classes/FoldableContainer.ts +110 -0
- package/gen/classes/FoldableGroup.ts +38 -0
- package/gen/classes/Font.ts +242 -0
- package/gen/classes/FontFile.ts +514 -0
- package/gen/classes/FontVariation.ts +123 -0
- package/gen/classes/FramebufferCacheRD.ts +21 -0
- package/gen/classes/GDExtension.ts +47 -0
- package/gen/classes/GDExtensionManager.ts +101 -0
- package/gen/classes/GDScript.ts +30 -0
- package/gen/classes/GLTFAccessor.ts +203 -0
- package/gen/classes/GLTFAnimation.ts +33 -0
- package/gen/classes/GLTFBufferView.ts +68 -0
- package/gen/classes/GLTFCamera.ts +66 -0
- package/gen/classes/GLTFDocument.ts +202 -0
- package/gen/classes/GLTFDocumentExtension.ts +26 -0
- package/gen/classes/GLTFDocumentExtensionConvertImporterMesh.ts +11 -0
- package/gen/classes/GLTFLight.ts +80 -0
- package/gen/classes/GLTFMesh.ts +53 -0
- package/gen/classes/GLTFNode.ts +125 -0
- package/gen/classes/GLTFObjectModelProperty.ts +136 -0
- package/gen/classes/GLTFPhysicsBody.ts +89 -0
- package/gen/classes/GLTFPhysicsShape.ts +92 -0
- package/gen/classes/GLTFSkeleton.ts +32 -0
- package/gen/classes/GLTFSkin.ts +44 -0
- package/gen/classes/GLTFSpecGloss.ts +46 -0
- package/gen/classes/GLTFState.ts +250 -0
- package/gen/classes/GLTFTexture.ts +23 -0
- package/gen/classes/GLTFTextureSampler.ts +38 -0
- package/gen/classes/GPUParticles2D.ts +270 -0
- package/gen/classes/GPUParticles3D.ts +339 -0
- package/gen/classes/GPUParticlesAttractor3D.ts +43 -0
- package/gen/classes/GPUParticlesAttractorBox3D.ts +23 -0
- package/gen/classes/GPUParticlesAttractorSphere3D.ts +23 -0
- package/gen/classes/GPUParticlesAttractorVectorField3D.ts +32 -0
- package/gen/classes/GPUParticlesCollision3D.ts +26 -0
- package/gen/classes/GPUParticlesCollisionBox3D.ts +24 -0
- package/gen/classes/GPUParticlesCollisionHeightField3D.ts +109 -0
- package/gen/classes/GPUParticlesCollisionSDF3D.ts +95 -0
- package/gen/classes/GPUParticlesCollisionSphere3D.ts +23 -0
- package/gen/classes/Generic6DOFJoint3D.ts +146 -0
- package/gen/classes/Geometry2D.ts +249 -0
- package/gen/classes/Geometry3D.ts +94 -0
- package/gen/classes/GeometryInstance3D.ts +223 -0
- package/gen/classes/GodotInstance.ts +48 -0
- package/gen/classes/Gradient.ts +125 -0
- package/gen/classes/GradientTexture1D.ts +33 -0
- package/gen/classes/GradientTexture2D.ts +104 -0
- package/gen/classes/GraphEdit.ts +535 -0
- package/gen/classes/GraphElement.ts +101 -0
- package/gen/classes/GraphFrame.ts +66 -0
- package/gen/classes/GraphNode.ts +241 -0
- package/gen/classes/GridContainer.ts +21 -0
- package/gen/classes/GridMap.ts +294 -0
- package/gen/classes/GrooveJoint2D.ts +26 -0
- package/gen/classes/HBoxContainer.ts +14 -0
- package/gen/classes/HFlowContainer.ts +14 -0
- package/gen/classes/HMACContext.ts +54 -0
- package/gen/classes/HScrollBar.ts +14 -0
- package/gen/classes/HSeparator.ts +14 -0
- package/gen/classes/HSlider.ts +14 -0
- package/gen/classes/HSplitContainer.ts +14 -0
- package/gen/classes/HTTPClient.ts +525 -0
- package/gen/classes/HTTPRequest.ts +264 -0
- package/gen/classes/HashingContext.ts +75 -0
- package/gen/classes/HeightMapShape3D.ts +73 -0
- package/gen/classes/HingeJoint3D.ts +90 -0
- package/gen/classes/IKModifier3D.ts +40 -0
- package/gen/classes/IP.ts +132 -0
- package/gen/classes/Image.ts +835 -0
- package/gen/classes/ImageFormatLoader.ts +31 -0
- package/gen/classes/ImageFormatLoaderExtension.ts +30 -0
- package/gen/classes/ImageTexture.ts +73 -0
- package/gen/classes/ImageTexture3D.ts +29 -0
- package/gen/classes/ImageTextureLayered.ts +66 -0
- package/gen/classes/ImmediateMesh.ts +85 -0
- package/gen/classes/ImporterMesh.ts +159 -0
- package/gen/classes/ImporterMeshInstance3D.ts +45 -0
- package/gen/classes/Input.ts +743 -0
- package/gen/classes/InputEvent.ts +112 -0
- package/gen/classes/InputEventAction.ts +40 -0
- package/gen/classes/InputEventFromWindow.ts +19 -0
- package/gen/classes/InputEventGesture.ts +20 -0
- package/gen/classes/InputEventJoypadButton.ts +30 -0
- package/gen/classes/InputEventJoypadMotion.ts +27 -0
- package/gen/classes/InputEventKey.ts +133 -0
- package/gen/classes/InputEventMIDI.ts +108 -0
- package/gen/classes/InputEventMagnifyGesture.ts +21 -0
- package/gen/classes/InputEventMouse.ts +35 -0
- package/gen/classes/InputEventMouseButton.ts +46 -0
- package/gen/classes/InputEventMouseMotion.ts +67 -0
- package/gen/classes/InputEventPanGesture.ts +22 -0
- package/gen/classes/InputEventScreenDrag.ts +71 -0
- package/gen/classes/InputEventScreenTouch.ts +45 -0
- package/gen/classes/InputEventShortcut.ts +21 -0
- package/gen/classes/InputEventWithModifiers.ts +56 -0
- package/gen/classes/InputMap.ts +97 -0
- package/gen/classes/InstancePlaceholder.ts +33 -0
- package/gen/classes/IntervalTweener.ts +15 -0
- package/gen/classes/ItemList.ts +482 -0
- package/gen/classes/IterateIK3D.ts +136 -0
- package/gen/classes/JNISingleton.ts +20 -0
- package/gen/classes/JSON.ts +163 -0
- package/gen/classes/JSONRPC.ts +87 -0
- package/gen/classes/JacobianIK3D.ts +16 -0
- package/gen/classes/JavaClass.ts +37 -0
- package/gen/classes/JavaClassWrapper.ts +94 -0
- package/gen/classes/JavaObject.ts +28 -0
- package/gen/classes/JavaScriptBridge.ts +85 -0
- package/gen/classes/JavaScriptObject.ts +45 -0
- package/gen/classes/Joint2D.ts +44 -0
- package/gen/classes/Joint3D.ts +46 -0
- package/gen/classes/JointLimitation3D.ts +14 -0
- package/gen/classes/JointLimitationCone3D.ts +21 -0
- package/gen/classes/KinematicCollision2D.ts +83 -0
- package/gen/classes/KinematicCollision3D.ts +88 -0
- package/gen/classes/Label.ts +184 -0
- package/gen/classes/Label3D.ts +280 -0
- package/gen/classes/LabelSettings.ts +168 -0
- package/gen/classes/Light2D.ts +150 -0
- package/gen/classes/Light3D.ts +310 -0
- package/gen/classes/LightOccluder2D.ts +33 -0
- package/gen/classes/LightmapGI.ts +291 -0
- package/gen/classes/LightmapGIData.ts +85 -0
- package/gen/classes/LightmapProbe.ts +16 -0
- package/gen/classes/Lightmapper.ts +14 -0
- package/gen/classes/LightmapperRD.ts +15 -0
- package/gen/classes/LimitAngularVelocityModifier3D.ts +91 -0
- package/gen/classes/Line2D.ts +191 -0
- package/gen/classes/LineEdit.ts +663 -0
- package/gen/classes/LinkButton.ts +99 -0
- package/gen/classes/Logger.ts +38 -0
- package/gen/classes/LookAtModifier3D.ts +245 -0
- package/gen/classes/MainLoop.ts +115 -0
- package/gen/classes/MarginContainer.ts +27 -0
- package/gen/classes/Marker2D.ts +20 -0
- package/gen/classes/Marker3D.ts +20 -0
- package/gen/classes/Marshalls.ts +50 -0
- package/gen/classes/Material.ts +53 -0
- package/gen/classes/MenuBar.ts +114 -0
- package/gen/classes/MenuButton.ts +51 -0
- package/gen/classes/Mesh.ts +348 -0
- package/gen/classes/MeshConvexDecompositionSettings.ts +106 -0
- package/gen/classes/MeshDataTool.ts +251 -0
- package/gen/classes/MeshInstance2D.ts +37 -0
- package/gen/classes/MeshInstance3D.ts +122 -0
- package/gen/classes/MeshLibrary.ts +149 -0
- package/gen/classes/MeshTexture.ts +34 -0
- package/gen/classes/MethodTweener.ts +32 -0
- package/gen/classes/MissingNode.ts +39 -0
- package/gen/classes/MissingResource.ts +27 -0
- package/gen/classes/MobileVRInterface.ts +89 -0
- package/gen/classes/ModifierBoneTarget3D.ts +27 -0
- package/gen/classes/MovieWriter.ts +34 -0
- package/gen/classes/MultiMesh.ts +197 -0
- package/gen/classes/MultiMeshInstance2D.ts +36 -0
- package/gen/classes/MultiMeshInstance3D.ts +22 -0
- package/gen/classes/MultiplayerAPI.ts +139 -0
- package/gen/classes/MultiplayerAPIExtension.ts +99 -0
- package/gen/classes/MultiplayerPeer.ts +148 -0
- package/gen/classes/MultiplayerPeerExtension.ts +17 -0
- package/gen/classes/MultiplayerSpawner.ts +75 -0
- package/gen/classes/MultiplayerSynchronizer.ts +119 -0
- package/gen/classes/Mutex.ts +37 -0
- package/gen/classes/NativeMenu.ts +567 -0
- package/gen/classes/NavigationAgent2D.ts +361 -0
- package/gen/classes/NavigationAgent3D.ts +380 -0
- package/gen/classes/NavigationLink2D.ts +107 -0
- package/gen/classes/NavigationLink3D.ts +107 -0
- package/gen/classes/NavigationMesh.ts +283 -0
- package/gen/classes/NavigationMeshGenerator.ts +46 -0
- package/gen/classes/NavigationMeshSourceGeometryData2D.ts +75 -0
- package/gen/classes/NavigationMeshSourceGeometryData3D.ts +76 -0
- package/gen/classes/NavigationObstacle2D.ts +87 -0
- package/gen/classes/NavigationObstacle3D.ts +100 -0
- package/gen/classes/NavigationPathQueryParameters2D.ts +162 -0
- package/gen/classes/NavigationPathQueryParameters3D.ts +162 -0
- package/gen/classes/NavigationPathQueryResult2D.ts +64 -0
- package/gen/classes/NavigationPathQueryResult3D.ts +64 -0
- package/gen/classes/NavigationPolygon.ts +259 -0
- package/gen/classes/NavigationRegion2D.ts +116 -0
- package/gen/classes/NavigationRegion3D.ts +116 -0
- package/gen/classes/NavigationServer2D.ts +799 -0
- package/gen/classes/NavigationServer2DManager.ts +28 -0
- package/gen/classes/NavigationServer3D.ts +888 -0
- package/gen/classes/NavigationServer3DManager.ts +28 -0
- package/gen/classes/NinePatchRect.ts +95 -0
- package/gen/classes/Node.ts +1336 -0
- package/gen/classes/Node2D.ts +150 -0
- package/gen/classes/Node3D.ts +404 -0
- package/gen/classes/Node3DGizmo.ts +14 -0
- package/gen/classes/Noise.ts +67 -0
- package/gen/classes/NoiseTexture2D.ts +104 -0
- package/gen/classes/NoiseTexture3D.ts +84 -0
- package/gen/classes/ORMMaterial3D.ts +14 -0
- package/gen/classes/OS.ts +848 -0
- package/gen/classes/Object.ts +583 -0
- package/gen/classes/Occluder3D.ts +25 -0
- package/gen/classes/OccluderInstance3D.ts +54 -0
- package/gen/classes/OccluderPolygon2D.ts +51 -0
- package/gen/classes/OfflineMultiplayerPeer.ts +15 -0
- package/gen/classes/OggPacketSequence.ts +38 -0
- package/gen/classes/OggPacketSequencePlayback.ts +11 -0
- package/gen/classes/OmniLight3D.ts +49 -0
- package/gen/classes/OpenXRAPIExtension.ts +303 -0
- package/gen/classes/OpenXRAction.ts +55 -0
- package/gen/classes/OpenXRActionBindingModifier.ts +14 -0
- package/gen/classes/OpenXRActionMap.ts +86 -0
- package/gen/classes/OpenXRActionSet.ts +50 -0
- package/gen/classes/OpenXRAnalogThresholdModifier.ts +40 -0
- package/gen/classes/OpenXRAnchorTracker.ts +32 -0
- package/gen/classes/OpenXRAndroidThreadSettingsExtension.ts +43 -0
- package/gen/classes/OpenXRBindingModifier.ts +14 -0
- package/gen/classes/OpenXRCompositionLayer.ts +275 -0
- package/gen/classes/OpenXRCompositionLayerCylinder.ts +38 -0
- package/gen/classes/OpenXRCompositionLayerEquirect.ts +44 -0
- package/gen/classes/OpenXRCompositionLayerQuad.ts +21 -0
- package/gen/classes/OpenXRDpadBindingModifier.ts +73 -0
- package/gen/classes/OpenXRExtensionWrapper.ts +33 -0
- package/gen/classes/OpenXRExtensionWrapperExtension.ts +14 -0
- package/gen/classes/OpenXRFrameSynthesisExtension.ts +36 -0
- package/gen/classes/OpenXRFutureExtension.ts +43 -0
- package/gen/classes/OpenXRFutureResult.ts +64 -0
- package/gen/classes/OpenXRHand.ts +117 -0
- package/gen/classes/OpenXRHapticBase.ts +13 -0
- package/gen/classes/OpenXRHapticVibration.ts +32 -0
- package/gen/classes/OpenXRIPBinding.ts +72 -0
- package/gen/classes/OpenXRIPBindingModifier.ts +14 -0
- package/gen/classes/OpenXRInteractionProfile.ts +56 -0
- package/gen/classes/OpenXRInteractionProfileMetadata.ts +43 -0
- package/gen/classes/OpenXRInterface.ts +550 -0
- package/gen/classes/OpenXRMarkerTracker.ts +46 -0
- package/gen/classes/OpenXRPlaneTracker.ts +68 -0
- package/gen/classes/OpenXRRenderModel.ts +33 -0
- package/gen/classes/OpenXRRenderModelExtension.ts +105 -0
- package/gen/classes/OpenXRRenderModelManager.ts +63 -0
- package/gen/classes/OpenXRSpatialAnchorCapability.ts +114 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAnchor.ts +21 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAprilTag.ts +50 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAruco.ts +98 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationBaseHeader.ts +25 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationMicroQrCode.ts +21 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationPlaneTracking.ts +36 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationQrCode.ts +21 -0
- package/gen/classes/OpenXRSpatialComponentAnchorList.ts +20 -0
- package/gen/classes/OpenXRSpatialComponentBounded2DList.ts +25 -0
- package/gen/classes/OpenXRSpatialComponentBounded3DList.ts +25 -0
- package/gen/classes/OpenXRSpatialComponentData.ts +24 -0
- package/gen/classes/OpenXRSpatialComponentMarkerList.ts +60 -0
- package/gen/classes/OpenXRSpatialComponentMesh2DList.ts +31 -0
- package/gen/classes/OpenXRSpatialComponentMesh3DList.ts +26 -0
- package/gen/classes/OpenXRSpatialComponentParentList.ts +20 -0
- package/gen/classes/OpenXRSpatialComponentPersistenceList.ts +24 -0
- package/gen/classes/OpenXRSpatialComponentPlaneAlignmentList.ts +41 -0
- package/gen/classes/OpenXRSpatialComponentPlaneSemanticLabelList.ts +45 -0
- package/gen/classes/OpenXRSpatialComponentPolygon2DList.ts +26 -0
- package/gen/classes/OpenXRSpatialContextPersistenceConfig.ts +30 -0
- package/gen/classes/OpenXRSpatialEntityExtension.ts +241 -0
- package/gen/classes/OpenXRSpatialEntityTracker.ts +82 -0
- package/gen/classes/OpenXRSpatialMarkerTrackingCapability.ts +56 -0
- package/gen/classes/OpenXRSpatialPlaneTrackingCapability.ts +33 -0
- package/gen/classes/OpenXRSpatialQueryResultData.ts +30 -0
- package/gen/classes/OpenXRStructureBase.ts +25 -0
- package/gen/classes/OpenXRVisibilityMask.ts +15 -0
- package/gen/classes/OptimizedTranslation.ts +22 -0
- package/gen/classes/OptionButton.ts +236 -0
- package/gen/classes/PCKPacker.ts +57 -0
- package/gen/classes/PackedDataContainer.ts +58 -0
- package/gen/classes/PackedDataContainerRef.ts +47 -0
- package/gen/classes/PackedScene.ts +104 -0
- package/gen/classes/PacketPeer.ts +56 -0
- package/gen/classes/PacketPeerDTLS.ts +65 -0
- package/gen/classes/PacketPeerExtension.ts +12 -0
- package/gen/classes/PacketPeerStream.ts +28 -0
- package/gen/classes/PacketPeerUDP.ts +139 -0
- package/gen/classes/Panel.ts +14 -0
- package/gen/classes/PanelContainer.ts +14 -0
- package/gen/classes/PanoramaSkyMaterial.ts +35 -0
- package/gen/classes/Parallax2D.ts +78 -0
- package/gen/classes/ParallaxBackground.ts +52 -0
- package/gen/classes/ParallaxLayer.ts +38 -0
- package/gen/classes/ParticleProcessMaterial.ts +949 -0
- package/gen/classes/Path2D.ts +22 -0
- package/gen/classes/Path3D.ts +42 -0
- package/gen/classes/PathFollow2D.ts +60 -0
- package/gen/classes/PathFollow3D.ts +104 -0
- package/gen/classes/Performance.ts +370 -0
- package/gen/classes/PhysicalBone2D.ts +59 -0
- package/gen/classes/PhysicalBone3D.ts +189 -0
- package/gen/classes/PhysicalBoneSimulator3D.ts +43 -0
- package/gen/classes/PhysicalSkyMaterial.ts +83 -0
- package/gen/classes/PhysicsBody2D.ts +55 -0
- package/gen/classes/PhysicsBody3D.ts +94 -0
- package/gen/classes/PhysicsDirectBodyState2D.ts +249 -0
- package/gen/classes/PhysicsDirectBodyState2DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectBodyState3D.ts +256 -0
- package/gen/classes/PhysicsDirectBodyState3DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectSpaceState2D.ts +77 -0
- package/gen/classes/PhysicsDirectSpaceState2DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectSpaceState3D.ts +81 -0
- package/gen/classes/PhysicsDirectSpaceState3DExtension.ts +19 -0
- package/gen/classes/PhysicsMaterial.ts +39 -0
- package/gen/classes/PhysicsPointQueryParameters2D.ts +54 -0
- package/gen/classes/PhysicsPointQueryParameters3D.ts +47 -0
- package/gen/classes/PhysicsRayQueryParameters2D.ts +71 -0
- package/gen/classes/PhysicsRayQueryParameters3D.ts +77 -0
- package/gen/classes/PhysicsServer2D.ts +1078 -0
- package/gen/classes/PhysicsServer2DExtension.ts +33 -0
- package/gen/classes/PhysicsServer2DManager.ts +28 -0
- package/gen/classes/PhysicsServer3D.ts +1620 -0
- package/gen/classes/PhysicsServer3DExtension.ts +26 -0
- package/gen/classes/PhysicsServer3DManager.ts +28 -0
- package/gen/classes/PhysicsServer3DRenderingServerHandler.ts +27 -0
- package/gen/classes/PhysicsShapeQueryParameters2D.ts +89 -0
- package/gen/classes/PhysicsShapeQueryParameters3D.ts +89 -0
- package/gen/classes/PhysicsTestMotionParameters2D.ts +60 -0
- package/gen/classes/PhysicsTestMotionParameters3D.ts +66 -0
- package/gen/classes/PhysicsTestMotionResult2D.ts +82 -0
- package/gen/classes/PhysicsTestMotionResult3D.ts +87 -0
- package/gen/classes/PinJoint2D.ts +50 -0
- package/gen/classes/PinJoint3D.ts +42 -0
- package/gen/classes/PlaceholderCubemap.ts +17 -0
- package/gen/classes/PlaceholderCubemapArray.ts +17 -0
- package/gen/classes/PlaceholderMaterial.ts +16 -0
- package/gen/classes/PlaceholderMesh.ts +23 -0
- package/gen/classes/PlaceholderTexture2D.ts +24 -0
- package/gen/classes/PlaceholderTexture2DArray.ts +17 -0
- package/gen/classes/PlaceholderTexture3D.ts +24 -0
- package/gen/classes/PlaceholderTextureLayered.ts +29 -0
- package/gen/classes/PlaneMesh.ts +64 -0
- package/gen/classes/PointLight2D.ts +40 -0
- package/gen/classes/PointMesh.ts +16 -0
- package/gen/classes/Polygon2D.ts +150 -0
- package/gen/classes/PolygonOccluder3D.ts +23 -0
- package/gen/classes/PolygonPathFinder.ts +61 -0
- package/gen/classes/Popup.ts +22 -0
- package/gen/classes/PopupMenu.ts +567 -0
- package/gen/classes/PopupPanel.ts +14 -0
- package/gen/classes/PortableCompressedTexture2D.ts +74 -0
- package/gen/classes/PrimitiveMesh.ts +69 -0
- package/gen/classes/PrismMesh.ts +45 -0
- package/gen/classes/ProceduralSkyMaterial.ts +102 -0
- package/gen/classes/ProgressBar.ts +60 -0
- package/gen/classes/ProjectSettings.ts +233 -0
- package/gen/classes/PropertyTweener.ts +94 -0
- package/gen/classes/QuadMesh.ts +14 -0
- package/gen/classes/QuadOccluder3D.ts +22 -0
- package/gen/classes/RDAccelerationStructureGeometry.ts +71 -0
- package/gen/classes/RDAccelerationStructureInstance.ts +53 -0
- package/gen/classes/RDAttachmentFormat.ts +33 -0
- package/gen/classes/RDFramebufferPass.ts +52 -0
- package/gen/classes/RDHitGroup.ts +35 -0
- package/gen/classes/RDPipelineColorBlendState.ts +42 -0
- package/gen/classes/RDPipelineColorBlendStateAttachment.ts +161 -0
- package/gen/classes/RDPipelineDepthStencilState.ts +141 -0
- package/gen/classes/RDPipelineMultisampleState.ts +52 -0
- package/gen/classes/RDPipelineRasterizationState.ts +81 -0
- package/gen/classes/RDPipelineShader.ts +29 -0
- package/gen/classes/RDPipelineSpecializationConstant.ts +28 -0
- package/gen/classes/RDSamplerState.ts +106 -0
- package/gen/classes/RDShaderFile.ts +38 -0
- package/gen/classes/RDShaderSPIRV.ts +136 -0
- package/gen/classes/RDShaderSource.ts +82 -0
- package/gen/classes/RDTextureFormat.ts +93 -0
- package/gen/classes/RDTextureView.ts +45 -0
- package/gen/classes/RDUniform.ts +43 -0
- package/gen/classes/RDVertexAttribute.ts +52 -0
- package/gen/classes/RandomNumberGenerator.ts +114 -0
- package/gen/classes/Range.ts +104 -0
- package/gen/classes/RayCast2D.ts +148 -0
- package/gen/classes/RayCast3D.ts +172 -0
- package/gen/classes/RectangleShape2D.ts +22 -0
- package/gen/classes/RefCounted.ts +41 -0
- package/gen/classes/ReferenceRect.ts +33 -0
- package/gen/classes/ReflectionProbe.ts +145 -0
- package/gen/classes/RegEx.ts +129 -0
- package/gen/classes/RegExMatch.ts +53 -0
- package/gen/classes/RemoteTransform2D.ts +51 -0
- package/gen/classes/RemoteTransform3D.ts +51 -0
- package/gen/classes/RenderData.ts +37 -0
- package/gen/classes/RenderDataExtension.ts +17 -0
- package/gen/classes/RenderDataRD.ts +15 -0
- package/gen/classes/RenderSceneBuffers.ts +20 -0
- package/gen/classes/RenderSceneBuffersConfiguration.ts +78 -0
- package/gen/classes/RenderSceneBuffersExtension.ts +15 -0
- package/gen/classes/RenderSceneBuffersRD.ts +163 -0
- package/gen/classes/RenderSceneData.ts +49 -0
- package/gen/classes/RenderSceneDataExtension.ts +16 -0
- package/gen/classes/RenderSceneDataRD.ts +15 -0
- package/gen/classes/RenderingDevice.ts +3416 -0
- package/gen/classes/RenderingServer.ts +5580 -0
- package/gen/classes/Resource.ts +171 -0
- package/gen/classes/ResourceFormatLoader.ts +44 -0
- package/gen/classes/ResourceFormatSaver.ts +18 -0
- package/gen/classes/ResourceImporter.ts +28 -0
- package/gen/classes/ResourceLoader.ts +178 -0
- package/gen/classes/ResourcePreloader.ts +50 -0
- package/gen/classes/ResourceSaver.ts +94 -0
- package/gen/classes/ResourceUID.ts +73 -0
- package/gen/classes/RetargetModifier3D.ts +91 -0
- package/gen/classes/RibbonTrailMesh.ts +66 -0
- package/gen/classes/RichTextEffect.ts +27 -0
- package/gen/classes/RichTextLabel.ts +860 -0
- package/gen/classes/RigidBody2D.ts +359 -0
- package/gen/classes/RigidBody3D.ts +347 -0
- package/gen/classes/RootMotionView.ts +47 -0
- package/gen/classes/SceneMultiplayer.ts +122 -0
- package/gen/classes/SceneReplicationConfig.ts +96 -0
- package/gen/classes/SceneState.ts +160 -0
- package/gen/classes/SceneTree.ts +371 -0
- package/gen/classes/SceneTreeTimer.ts +42 -0
- package/gen/classes/Script.ts +122 -0
- package/gen/classes/ScriptBacktrace.ts +103 -0
- package/gen/classes/ScriptExtension.ts +15 -0
- package/gen/classes/ScriptLanguage.ts +21 -0
- package/gen/classes/ScriptLanguageExtension.ts +72 -0
- package/gen/classes/ScrollBar.ts +26 -0
- package/gen/classes/ScrollContainer.ts +199 -0
- package/gen/classes/SegmentShape2D.ts +27 -0
- package/gen/classes/Semaphore.ts +33 -0
- package/gen/classes/SeparationRayShape2D.ts +27 -0
- package/gen/classes/SeparationRayShape3D.ts +27 -0
- package/gen/classes/Separator.ts +13 -0
- package/gen/classes/Shader.ts +83 -0
- package/gen/classes/ShaderGlobalsOverride.ts +16 -0
- package/gen/classes/ShaderInclude.ts +20 -0
- package/gen/classes/ShaderIncludeDB.ts +30 -0
- package/gen/classes/ShaderMaterial.ts +36 -0
- package/gen/classes/Shape2D.ts +61 -0
- package/gen/classes/Shape3D.ts +35 -0
- package/gen/classes/ShapeCast2D.ts +168 -0
- package/gen/classes/ShapeCast3D.ts +181 -0
- package/gen/classes/Shortcut.ts +60 -0
- package/gen/classes/Skeleton2D.ts +67 -0
- package/gen/classes/Skeleton3D.ts +359 -0
- package/gen/classes/SkeletonIK3D.ts +119 -0
- package/gen/classes/SkeletonModification2D.ts +58 -0
- package/gen/classes/SkeletonModification2DCCDIK.ts +107 -0
- package/gen/classes/SkeletonModification2DFABRIK.ts +73 -0
- package/gen/classes/SkeletonModification2DJiggle.ts +165 -0
- package/gen/classes/SkeletonModification2DLookAt.ts +84 -0
- package/gen/classes/SkeletonModification2DPhysicalBones.ts +49 -0
- package/gen/classes/SkeletonModification2DStackHolder.ts +26 -0
- package/gen/classes/SkeletonModification2DTwoBoneIK.ts +80 -0
- package/gen/classes/SkeletonModificationStack2D.ts +82 -0
- package/gen/classes/SkeletonModifier3D.ts +168 -0
- package/gen/classes/SkeletonProfile.ts +180 -0
- package/gen/classes/SkeletonProfileHumanoid.ts +76 -0
- package/gen/classes/Skin.ts +35 -0
- package/gen/classes/SkinReference.ts +30 -0
- package/gen/classes/Sky.ts +94 -0
- package/gen/classes/Slider.ts +78 -0
- package/gen/classes/SliderJoint3D.ts +122 -0
- package/gen/classes/SocketServer.ts +34 -0
- package/gen/classes/SoftBody3D.ts +188 -0
- package/gen/classes/SphereMesh.ts +45 -0
- package/gen/classes/SphereOccluder3D.ts +21 -0
- package/gen/classes/SphereShape3D.ts +21 -0
- package/gen/classes/SpinBox.ts +97 -0
- package/gen/classes/SplineIK3D.ts +70 -0
- package/gen/classes/SplitContainer.ts +163 -0
- package/gen/classes/SpotLight3D.ts +46 -0
- package/gen/classes/SpringArm3D.ts +64 -0
- package/gen/classes/SpringBoneCollision3D.ts +48 -0
- package/gen/classes/SpringBoneCollisionCapsule3D.ts +40 -0
- package/gen/classes/SpringBoneCollisionPlane3D.ts +14 -0
- package/gen/classes/SpringBoneCollisionSphere3D.ts +26 -0
- package/gen/classes/SpringBoneSimulator3D.ts +476 -0
- package/gen/classes/Sprite2D.ts +125 -0
- package/gen/classes/Sprite3D.ts +71 -0
- package/gen/classes/SpriteBase3D.ts +205 -0
- package/gen/classes/SpriteFrames.ts +147 -0
- package/gen/classes/StandardMaterial3D.ts +14 -0
- package/gen/classes/StaticBody2D.ts +37 -0
- package/gen/classes/StaticBody3D.ts +37 -0
- package/gen/classes/StatusIndicator.ts +50 -0
- package/gen/classes/StreamPeer.ts +206 -0
- package/gen/classes/StreamPeerBuffer.ts +52 -0
- package/gen/classes/StreamPeerExtension.ts +12 -0
- package/gen/classes/StreamPeerGZIP.ts +37 -0
- package/gen/classes/StreamPeerSocket.ts +51 -0
- package/gen/classes/StreamPeerTCP.ts +48 -0
- package/gen/classes/StreamPeerTLS.ts +73 -0
- package/gen/classes/StreamPeerUDS.ts +32 -0
- package/gen/classes/StyleBox.ts +86 -0
- package/gen/classes/StyleBoxEmpty.ts +14 -0
- package/gen/classes/StyleBoxFlat.ts +200 -0
- package/gen/classes/StyleBoxLine.ts +45 -0
- package/gen/classes/StyleBoxTexture.ts +138 -0
- package/gen/classes/SubViewport.ts +98 -0
- package/gen/classes/SubViewportContainer.ts +40 -0
- package/gen/classes/SubtweenTweener.ts +20 -0
- package/gen/classes/SurfaceTool.ts +271 -0
- package/gen/classes/SyntaxHighlighter.ts +54 -0
- package/gen/classes/SystemFont.ts +122 -0
- package/gen/classes/TCPServer.ts +35 -0
- package/gen/classes/TLSOptions.ts +79 -0
- package/gen/classes/TabBar.ts +363 -0
- package/gen/classes/TabContainer.ts +296 -0
- package/gen/classes/TextEdit.ts +1458 -0
- package/gen/classes/TextLine.ts +179 -0
- package/gen/classes/TextMesh.ts +134 -0
- package/gen/classes/TextParagraph.ts +278 -0
- package/gen/classes/TextServer.ts +1891 -0
- package/gen/classes/TextServerAdvanced.ts +14 -0
- package/gen/classes/TextServerDummy.ts +30 -0
- package/gen/classes/TextServerExtension.ts +20 -0
- package/gen/classes/TextServerManager.ts +71 -0
- package/gen/classes/Texture.ts +14 -0
- package/gen/classes/Texture2D.ts +84 -0
- package/gen/classes/Texture2DArray.ts +22 -0
- package/gen/classes/Texture2DArrayRD.ts +15 -0
- package/gen/classes/Texture2DRD.ts +22 -0
- package/gen/classes/Texture3D.ts +55 -0
- package/gen/classes/Texture3DRD.ts +22 -0
- package/gen/classes/TextureButton.ts +112 -0
- package/gen/classes/TextureCubemapArrayRD.ts +15 -0
- package/gen/classes/TextureCubemapRD.ts +15 -0
- package/gen/classes/TextureLayered.ts +73 -0
- package/gen/classes/TextureLayeredRD.ts +21 -0
- package/gen/classes/TextureProgressBar.ts +158 -0
- package/gen/classes/TextureRect.ts +109 -0
- package/gen/classes/Theme.ts +438 -0
- package/gen/classes/ThemeDB.ts +72 -0
- package/gen/classes/Thread.ts +86 -0
- package/gen/classes/TileData.ts +255 -0
- package/gen/classes/TileMap.ts +400 -0
- package/gen/classes/TileMapLayer.ts +303 -0
- package/gen/classes/TileMapPattern.ts +67 -0
- package/gen/classes/TileSet.ts +619 -0
- package/gen/classes/TileSetAtlasSource.ts +269 -0
- package/gen/classes/TileSetScenesCollectionSource.ts +87 -0
- package/gen/classes/TileSetSource.ts +50 -0
- package/gen/classes/Time.ts +237 -0
- package/gen/classes/Timer.ts +109 -0
- package/gen/classes/TorusMesh.ts +38 -0
- package/gen/classes/TouchScreenButton.ts +106 -0
- package/gen/classes/Translation.ts +91 -0
- package/gen/classes/TranslationDomain.ts +154 -0
- package/gen/classes/TranslationServer.ts +194 -0
- package/gen/classes/Tree.ts +521 -0
- package/gen/classes/TreeItem.ts +682 -0
- package/gen/classes/TriangleMesh.ts +52 -0
- package/gen/classes/TubeTrailMesh.ts +64 -0
- package/gen/classes/Tween.ts +604 -0
- package/gen/classes/Tweener.ts +20 -0
- package/gen/classes/TwoBoneIK3D.ts +173 -0
- package/gen/classes/UDPServer.ts +115 -0
- package/gen/classes/UDSServer.ts +28 -0
- package/gen/classes/UPNP.ts +279 -0
- package/gen/classes/UPNPDevice.ts +116 -0
- package/gen/classes/UndoRedo.ts +226 -0
- package/gen/classes/UniformSetCacheRD.ts +21 -0
- package/gen/classes/VBoxContainer.ts +14 -0
- package/gen/classes/VFlowContainer.ts +14 -0
- package/gen/classes/VScrollBar.ts +14 -0
- package/gen/classes/VSeparator.ts +14 -0
- package/gen/classes/VSlider.ts +14 -0
- package/gen/classes/VSplitContainer.ts +14 -0
- package/gen/classes/VehicleBody3D.ts +38 -0
- package/gen/classes/VehicleWheel3D.ts +134 -0
- package/gen/classes/VideoStream.ts +22 -0
- package/gen/classes/VideoStreamPlayback.ts +21 -0
- package/gen/classes/VideoStreamPlayer.ts +129 -0
- package/gen/classes/VideoStreamTheora.ts +15 -0
- package/gen/classes/Viewport.ts +1109 -0
- package/gen/classes/ViewportTexture.ts +35 -0
- package/gen/classes/VirtualJoystick.ts +150 -0
- package/gen/classes/VisibleOnScreenEnabler2D.ts +47 -0
- package/gen/classes/VisibleOnScreenEnabler3D.ts +47 -0
- package/gen/classes/VisibleOnScreenNotifier2D.ts +48 -0
- package/gen/classes/VisibleOnScreenNotifier3D.ts +42 -0
- package/gen/classes/VisualInstance3D.ts +69 -0
- package/gen/classes/VisualShader.ts +247 -0
- package/gen/classes/VisualShaderNode.ts +103 -0
- package/gen/classes/VisualShaderNodeBillboard.ts +52 -0
- package/gen/classes/VisualShaderNodeBooleanConstant.ts +21 -0
- package/gen/classes/VisualShaderNodeBooleanParameter.ts +26 -0
- package/gen/classes/VisualShaderNodeClamp.ts +54 -0
- package/gen/classes/VisualShaderNodeColorConstant.ts +22 -0
- package/gen/classes/VisualShaderNodeColorFunc.ts +106 -0
- package/gen/classes/VisualShaderNodeColorOp.ts +144 -0
- package/gen/classes/VisualShaderNodeColorParameter.ts +27 -0
- package/gen/classes/VisualShaderNodeComment.ts +20 -0
- package/gen/classes/VisualShaderNodeCompare.ts +124 -0
- package/gen/classes/VisualShaderNodeConstant.ts +13 -0
- package/gen/classes/VisualShaderNodeCubemap.ts +72 -0
- package/gen/classes/VisualShaderNodeCubemapParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeCurveTexture.ts +21 -0
- package/gen/classes/VisualShaderNodeCurveXYZTexture.ts +21 -0
- package/gen/classes/VisualShaderNodeCustom.ts +38 -0
- package/gen/classes/VisualShaderNodeDerivativeFunc.ts +100 -0
- package/gen/classes/VisualShaderNodeDeterminant.ts +14 -0
- package/gen/classes/VisualShaderNodeDistanceFade.ts +14 -0
- package/gen/classes/VisualShaderNodeDotProduct.ts +14 -0
- package/gen/classes/VisualShaderNodeExpression.ts +21 -0
- package/gen/classes/VisualShaderNodeFaceForward.ts +14 -0
- package/gen/classes/VisualShaderNodeFloatConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeFloatFunc.ts +158 -0
- package/gen/classes/VisualShaderNodeFloatOp.ts +70 -0
- package/gen/classes/VisualShaderNodeFloatParameter.ts +72 -0
- package/gen/classes/VisualShaderNodeFrame.ts +58 -0
- package/gen/classes/VisualShaderNodeFresnel.ts +14 -0
- package/gen/classes/VisualShaderNodeGlobalExpression.ts +14 -0
- package/gen/classes/VisualShaderNodeGroupBase.ts +118 -0
- package/gen/classes/VisualShaderNodeIf.ts +17 -0
- package/gen/classes/VisualShaderNodeInput.ts +32 -0
- package/gen/classes/VisualShaderNodeIntConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeIntFunc.ts +46 -0
- package/gen/classes/VisualShaderNodeIntOp.ts +78 -0
- package/gen/classes/VisualShaderNodeIntParameter.ts +83 -0
- package/gen/classes/VisualShaderNodeIs.ts +38 -0
- package/gen/classes/VisualShaderNodeLinearSceneDepth.ts +14 -0
- package/gen/classes/VisualShaderNodeMix.ts +58 -0
- package/gen/classes/VisualShaderNodeMultiplyAdd.ts +46 -0
- package/gen/classes/VisualShaderNodeOuterProduct.ts +14 -0
- package/gen/classes/VisualShaderNodeOutput.ts +13 -0
- package/gen/classes/VisualShaderNodeParameter.ts +57 -0
- package/gen/classes/VisualShaderNodeParameterRef.ts +23 -0
- package/gen/classes/VisualShaderNodeParticleAccelerator.ts +42 -0
- package/gen/classes/VisualShaderNodeParticleBoxEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleConeVelocity.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleEmit.ts +46 -0
- package/gen/classes/VisualShaderNodeParticleEmitter.ts +19 -0
- package/gen/classes/VisualShaderNodeParticleMeshEmitter.ts +33 -0
- package/gen/classes/VisualShaderNodeParticleMultiplyByAxisAngle.ts +20 -0
- package/gen/classes/VisualShaderNodeParticleOutput.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleRandomness.ts +46 -0
- package/gen/classes/VisualShaderNodeParticleRingEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleSphereEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeProximityFade.ts +14 -0
- package/gen/classes/VisualShaderNodeRandomRange.ts +14 -0
- package/gen/classes/VisualShaderNodeRemap.ts +55 -0
- package/gen/classes/VisualShaderNodeReroute.ts +18 -0
- package/gen/classes/VisualShaderNodeResizableBase.ts +20 -0
- package/gen/classes/VisualShaderNodeRotationByAxis.ts +14 -0
- package/gen/classes/VisualShaderNodeSDFRaymarch.ts +14 -0
- package/gen/classes/VisualShaderNodeSDFToScreenUV.ts +14 -0
- package/gen/classes/VisualShaderNodeSample3D.ts +37 -0
- package/gen/classes/VisualShaderNodeScreenNormalWorldSpace.ts +14 -0
- package/gen/classes/VisualShaderNodeScreenUVToSDF.ts +14 -0
- package/gen/classes/VisualShaderNodeSmoothStep.ts +59 -0
- package/gen/classes/VisualShaderNodeStep.ts +59 -0
- package/gen/classes/VisualShaderNodeSwitch.ts +62 -0
- package/gen/classes/VisualShaderNodeTexture.ts +96 -0
- package/gen/classes/VisualShaderNodeTexture2DArray.ts +21 -0
- package/gen/classes/VisualShaderNodeTexture2DArrayParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTexture2DParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTexture3D.ts +21 -0
- package/gen/classes/VisualShaderNodeTexture3DParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureParameter.ts +177 -0
- package/gen/classes/VisualShaderNodeTextureParameterTriplanar.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureSDF.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureSDFNormal.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformCompose.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformConstant.ts +21 -0
- package/gen/classes/VisualShaderNodeTransformDecompose.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeTransformOp.ts +66 -0
- package/gen/classes/VisualShaderNodeTransformParameter.ts +27 -0
- package/gen/classes/VisualShaderNodeTransformVecMult.ts +46 -0
- package/gen/classes/VisualShaderNodeUIntConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeUIntFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeUIntOp.ts +78 -0
- package/gen/classes/VisualShaderNodeUIntParameter.ts +26 -0
- package/gen/classes/VisualShaderNodeUVFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeUVPolarCoord.ts +14 -0
- package/gen/classes/VisualShaderNodeVarying.ts +26 -0
- package/gen/classes/VisualShaderNodeVaryingGetter.ts +14 -0
- package/gen/classes/VisualShaderNodeVaryingSetter.ts +14 -0
- package/gen/classes/VisualShaderNodeVec2Constant.ts +21 -0
- package/gen/classes/VisualShaderNodeVec2Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVec3Constant.ts +21 -0
- package/gen/classes/VisualShaderNodeVec3Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVec4Constant.ts +24 -0
- package/gen/classes/VisualShaderNodeVec4Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVectorBase.ts +41 -0
- package/gen/classes/VisualShaderNodeVectorCompose.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorDecompose.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorDistance.ts +15 -0
- package/gen/classes/VisualShaderNodeVectorFunc.ts +162 -0
- package/gen/classes/VisualShaderNodeVectorLen.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorOp.ts +78 -0
- package/gen/classes/VisualShaderNodeVectorRefract.ts +14 -0
- package/gen/classes/VisualShaderNodeWorldPositionFromDepth.ts +14 -0
- package/gen/classes/VoxelGI.ts +85 -0
- package/gen/classes/VoxelGIData.ts +95 -0
- package/gen/classes/WeakRef.ts +20 -0
- package/gen/classes/WebRTCDataChannel.ts +115 -0
- package/gen/classes/WebRTCDataChannelExtension.ts +14 -0
- package/gen/classes/WebRTCMultiplayerPeer.ts +63 -0
- package/gen/classes/WebRTCPeerConnection.ts +220 -0
- package/gen/classes/WebRTCPeerConnectionExtension.ts +15 -0
- package/gen/classes/WebSocketMultiplayerPeer.ts +81 -0
- package/gen/classes/WebSocketPeer.ts +213 -0
- package/gen/classes/WebXRInterface.ts +317 -0
- package/gen/classes/Window.ts +1127 -0
- package/gen/classes/WorkerThreadPool.ts +100 -0
- package/gen/classes/World2D.ts +36 -0
- package/gen/classes/World3D.ts +56 -0
- package/gen/classes/WorldBoundaryShape2D.ts +28 -0
- package/gen/classes/WorldBoundaryShape3D.ts +22 -0
- package/gen/classes/WorldEnvironment.ts +37 -0
- package/gen/classes/X509Certificate.ts +36 -0
- package/gen/classes/XMLParser.ts +154 -0
- package/gen/classes/XRAnchor3D.ts +27 -0
- package/gen/classes/XRBodyModifier3D.ts +70 -0
- package/gen/classes/XRBodyTracker.ts +444 -0
- package/gen/classes/XRCamera3D.ts +16 -0
- package/gen/classes/XRController3D.ts +79 -0
- package/gen/classes/XRControllerTracker.ts +16 -0
- package/gen/classes/XRFaceModifier3D.ts +29 -0
- package/gen/classes/XRFaceTracker.ts +614 -0
- package/gen/classes/XRHandModifier3D.ts +47 -0
- package/gen/classes/XRHandTracker.ts +246 -0
- package/gen/classes/XRInterface.ts +282 -0
- package/gen/classes/XRInterfaceExtension.ts +33 -0
- package/gen/classes/XRNode3D.ts +67 -0
- package/gen/classes/XROrigin3D.ts +29 -0
- package/gen/classes/XRPose.ts +80 -0
- package/gen/classes/XRPositionalTracker.ts +125 -0
- package/gen/classes/XRServer.ts +226 -0
- package/gen/classes/XRTracker.ts +40 -0
- package/gen/classes/XRVRS.ts +40 -0
- package/gen/classes/ZIPPacker.ts +114 -0
- package/gen/classes/ZIPReader.ts +89 -0
- package/gen/classes/index.ts +957 -0
- package/gen/global-constants.ts +60 -0
- package/gen/global-enums.ts +2284 -0
- package/gen/heap-types/GodotArray.ts +615 -0
- package/gen/heap-types/GodotDictionary.ts +298 -0
- package/gen/heap-types/PackedByteArray.ts +400 -0
- package/gen/heap-types/PackedColorArray.ts +144 -0
- package/gen/heap-types/PackedFloat32Array.ts +151 -0
- package/gen/heap-types/PackedFloat64Array.ts +152 -0
- package/gen/heap-types/PackedInt32Array.ts +144 -0
- package/gen/heap-types/PackedInt64Array.ts +145 -0
- package/gen/heap-types/PackedStringArray.ts +153 -0
- package/gen/heap-types/PackedVector2Array.ts +151 -0
- package/gen/heap-types/PackedVector3Array.ts +151 -0
- package/gen/heap-types/PackedVector4Array.ts +151 -0
- package/gen/heap-types/Signal.ts +180 -0
- package/gen/heap-types/index.ts +24 -0
- package/gen/index.ts +11 -0
- package/gen/utility-functions.ts +1457 -0
- package/gen/value-types/AABB.ts +288 -0
- package/gen/value-types/Basis.ts +283 -0
- package/gen/value-types/Color.ts +282 -0
- package/gen/value-types/Plane.ts +134 -0
- package/gen/value-types/Projection.ts +137 -0
- package/gen/value-types/Quaternion.ts +192 -0
- package/gen/value-types/Rect2.ts +182 -0
- package/gen/value-types/Rect2i.ts +161 -0
- package/gen/value-types/Transform2D.ts +206 -0
- package/gen/value-types/Transform3D.ts +137 -0
- package/gen/value-types/Vector2.ts +365 -0
- package/gen/value-types/Vector2i.ts +201 -0
- package/gen/value-types/Vector3.ts +365 -0
- package/gen/value-types/Vector3i.ts +202 -0
- package/gen/value-types/Vector4.ts +285 -0
- package/gen/value-types/Vector4i.ts +208 -0
- package/gen/value-types/index.ts +19 -0
- package/package.json +33 -0
- package/src/debug.ts +219 -0
- package/src/index.ts +36 -0
- package/src/runtime.ts +69 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// Auto-generated from extension_api.json - DO NOT EDIT
|
|
2
|
+
// Generated by dev/codegen.ts
|
|
3
|
+
|
|
4
|
+
import { _C, _R, GodotVar } from '../../src/runtime.ts';
|
|
5
|
+
import { Object } from './Object.ts';
|
|
6
|
+
import type { GodotArray, GodotDictionary, PackedInt32Array, PackedVector2Array, Variant } from '../heap-types/index.ts';
|
|
7
|
+
import type { Vector2, Vector2i } from '../value-types/index.ts';
|
|
8
|
+
|
|
9
|
+
let _$: any;
|
|
10
|
+
const $ = () => _$ ?? (_$ = _C(null, 40, 310));
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Provides a set of helper functions to create geometric shapes, compute intersections between shapes, and process various other geometric operations in 2D.
|
|
14
|
+
*/
|
|
15
|
+
export class Geometry2D extends GodotVar {
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns `true` if `point` is inside the circle or if it's located exactly *on* the circle's boundary, otherwise returns `false`.
|
|
19
|
+
*/
|
|
20
|
+
static isPointInCircle(point: Vector2, circlePosition: Vector2, circleRadius: number): boolean { return _C($(), 8185, point, circlePosition, circleRadius) as boolean; }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Given the 2D segment (`segmentFrom`, `segmentTo`), returns the position on the segment (as a number between 0 and 1) at which the segment hits the circle that is located at position `circlePosition` and has radius `circleRadius`. If the segment does not intersect the circle, -1 is returned (this is also the case if the line extending the segment would intersect the circle, but the segment does not).
|
|
24
|
+
*/
|
|
25
|
+
static segmentIntersectsCircle(segmentFrom: Vector2, segmentTo: Vector2, circlePosition: Vector2, circleRadius: number): number { return _C($(), 10345, segmentFrom, segmentTo, circlePosition, circleRadius) as number; }
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Checks if two line segments intersect, with line `a` between `fromA` and `toA` and line `b` between `fromB` and `toB`. If the line segments intersect, the point of intersection is returned as a {@link Vector2}. If no intersection takes place, `null` is returned.
|
|
29
|
+
*/
|
|
30
|
+
static segmentIntersectsSegment(fromA: Vector2, toA: Vector2, fromB: Vector2, toB: Vector2): Variant { return _C($(), 10348, fromA, toA, fromB, toB) as Variant; }
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns the point of intersection between the two lines (`fromA`, `dirA`) and (`fromB`, `dirB`). Returns a {@link Vector2}, or `null` if the lines are parallel.
|
|
34
|
+
* `from` and `dir` are *not* endpoints of a line segment or ray but the slope (`dir`) and a known point (`from`) on that line. To get the intersection between two line segments, use {@link segmentIntersectsSegment}.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* ```gdscript
|
|
38
|
+
*
|
|
39
|
+
* var from_a = Vector2.ZERO
|
|
40
|
+
* var dir_a = Vector2.RIGHT
|
|
41
|
+
* var from_b = Vector2.DOWN
|
|
42
|
+
*
|
|
43
|
+
* # Returns Vector2(1, 0)
|
|
44
|
+
* Geometry2D.line_intersects_line(from_a, dir_a, from_b, Vector2(1, -1))
|
|
45
|
+
* # Returns Vector2(-1, 0)
|
|
46
|
+
* Geometry2D.line_intersects_line(from_a, dir_a, from_b, Vector2(-1, -1))
|
|
47
|
+
* # Returns null
|
|
48
|
+
* Geometry2D.line_intersects_line(from_a, dir_a, from_b, Vector2.RIGHT)
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
static lineIntersectsLine(fromA: Vector2, dirA: Vector2, fromB: Vector2, dirB: Vector2): Variant | null { return _C($(), 8620, fromA, dirA, fromB, dirB) as Variant | null; }
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Given the two 2D segments (`p1`, `q1`) and (`p2`, `q2`), finds those two points on the two segments that are closest to each other. Returns a {@link PackedVector2Array} that contains this point on (`p1`, `q1`) as well the accompanying point on (`p2`, `q2`).
|
|
56
|
+
*/
|
|
57
|
+
static getClosestPointsBetweenSegments(p1: Vector2, q1: Vector2, p2: Vector2, q2: Vector2): PackedVector2Array { return _C($(), 4177, p1, q1, p2, q2) as PackedVector2Array; }
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the 2D point on the 2D segment (`s1`, `s2`) that is closest to `point`. The returned point will always be inside the specified segment.
|
|
61
|
+
*/
|
|
62
|
+
static getClosestPointToSegment(point: Vector2, s1: Vector2, s2: Vector2): Vector2 { return _C($(), 4175, point, s1, s2) as Vector2; }
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Returns the 2D point on the 2D line defined by (`s1`, `s2`) that is closest to `point`. The returned point can be inside the segment (`s1`, `s2`) or outside of it, i.e. somewhere on the line extending from the segment.
|
|
66
|
+
*/
|
|
67
|
+
static getClosestPointToSegmentUncapped(point: Vector2, s1: Vector2, s2: Vector2): Vector2 { return _C($(), 4176, point, s1, s2) as Vector2; }
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Returns if `point` is inside the triangle specified by `a`, `b` and `c`.
|
|
71
|
+
*/
|
|
72
|
+
static pointIsInsideTriangle(point: Vector2, a: Vector2, b: Vector2, c: Vector2): boolean { return _C($(), 9468, point, a, b, c) as boolean; }
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns `true` if `polygon`'s vertices are ordered in clockwise order, otherwise returns `false`.
|
|
76
|
+
* **Note:** Assumes a Cartesian coordinate system where `+x` is right and `+y` is up. If using screen coordinates (`+y` is down), the result will need to be flipped (i.e. a `true` result will indicate counter-clockwise).
|
|
77
|
+
*/
|
|
78
|
+
static isPolygonClockwise(polygon: PackedVector2Array): boolean { return _C($(), 8191, polygon) as boolean; }
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Returns `true` if `point` is inside `polygon` or if it's located exactly *on* polygon's boundary, otherwise returns `false`.
|
|
82
|
+
*/
|
|
83
|
+
static isPointInPolygon(point: Vector2, polygon: PackedVector2Array): boolean { return _C($(), 8186, point, polygon) as boolean; }
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Triangulates the polygon specified by the points in `polygon`. Returns a {@link PackedInt32Array} where each triangle consists of three consecutive point indices into `polygon` (i.e. the returned array will have `n * 3` elements, with `n` being the number of found triangles). Output triangles will always be counter clockwise, and the contour will be flipped if it's clockwise. If the triangulation did not succeed, an empty {@link PackedInt32Array} is returned.
|
|
87
|
+
*/
|
|
88
|
+
static triangulatePolygon(polygon: PackedVector2Array): PackedInt32Array { return _C($(), 14418, polygon) as PackedInt32Array; }
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Triangulates the area specified by discrete set of `points` such that no point is inside the circumcircle of any resulting triangle. Returns a {@link PackedInt32Array} where each triangle consists of three consecutive point indices into `points` (i.e. the returned array will have `n * 3` elements, with `n` being the number of found triangles). If the triangulation did not succeed, an empty {@link PackedInt32Array} is returned.
|
|
92
|
+
*/
|
|
93
|
+
static triangulateDelaunay(points: PackedVector2Array): PackedInt32Array { return _C($(), 14417, points) as PackedInt32Array; }
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Given an array of {@link Vector2}s, returns the convex hull as a list of points in counterclockwise order. The last point is the same as the first one.
|
|
97
|
+
*/
|
|
98
|
+
static convexHull(points: PackedVector2Array): PackedVector2Array { return _C($(), 2482, points) as PackedVector2Array; }
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Decomposes the `polygon` into multiple convex hulls and returns an array of {@link PackedVector2Array}.
|
|
102
|
+
*/
|
|
103
|
+
static decomposePolygonInConvex(polygon: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 2700, polygon) as GodotArray<PackedVector2Array>; }
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Merges (combines) `polygonA` and `polygonB` and returns an array of merged polygons. This performs {@link OPERATION_UNION} between polygons.
|
|
107
|
+
* The operation may result in an outer polygon (boundary) and multiple inner polygons (holes) produced which could be distinguished by calling {@link isPolygonClockwise}.
|
|
108
|
+
*/
|
|
109
|
+
static mergePolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 8854, polygonA, polygonB) as GodotArray<PackedVector2Array>; }
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Clips `polygonA` against `polygonB` and returns an array of clipped polygons. This performs {@link OPERATION_DIFFERENCE} between polygons. Returns an empty array if `polygonB` completely overlaps `polygonA`.
|
|
113
|
+
* If `polygonB` is enclosed by `polygonA`, returns an outer polygon (boundary) and inner polygon (hole) which could be distinguished by calling {@link isPolygonClockwise}.
|
|
114
|
+
*/
|
|
115
|
+
static clipPolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 2320, polygonA, polygonB) as GodotArray<PackedVector2Array>; }
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Intersects `polygonA` with `polygonB` and returns an array of intersected polygons. This performs {@link OPERATION_INTERSECTION} between polygons. In other words, returns common area shared by polygons. Returns an empty array if no intersection occurs.
|
|
119
|
+
* The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling {@link isPolygonClockwise}.
|
|
120
|
+
*/
|
|
121
|
+
static intersectPolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 7700, polygonA, polygonB) as GodotArray<PackedVector2Array>; }
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Mutually excludes common area defined by intersection of `polygonA` and `polygonB` (see {@link intersectPolygons}) and returns an array of excluded polygons. This performs {@link OPERATION_XOR} between polygons. In other words, returns all but common area between polygons.
|
|
125
|
+
* The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling {@link isPolygonClockwise}.
|
|
126
|
+
*/
|
|
127
|
+
static excludePolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 3177, polygonA, polygonB) as GodotArray<PackedVector2Array>; }
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Clips `polyline` against `polygon` and returns an array of clipped polylines. This performs {@link OPERATION_DIFFERENCE} between the polyline and the polygon. This operation can be thought of as cutting a line with a closed shape.
|
|
131
|
+
*/
|
|
132
|
+
static clipPolylineWithPolygon(polyline: PackedVector2Array, polygon: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 2321, polyline, polygon) as GodotArray<PackedVector2Array>; }
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Intersects `polyline` with `polygon` and returns an array of intersected polylines. This performs {@link OPERATION_INTERSECTION} between the polyline and the polygon. This operation can be thought of as chopping a line with a closed shape.
|
|
136
|
+
*/
|
|
137
|
+
static intersectPolylineWithPolygon(polyline: PackedVector2Array, polygon: PackedVector2Array): GodotArray<PackedVector2Array> { return _C($(), 7701, polyline, polygon) as GodotArray<PackedVector2Array>; }
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Inflates or deflates `polygon` by `delta` units (pixels). If `delta` is positive, makes the polygon grow outward. If `delta` is negative, shrinks the polygon inward. Returns an array of polygons because inflating/deflating may result in multiple discrete polygons. Returns an empty array if `delta` is negative and the absolute value of it approximately exceeds the minimum bounding rectangle dimensions of the polygon.
|
|
141
|
+
* Each polygon's vertices will be rounded as determined by `joinType`.
|
|
142
|
+
* The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling {@link isPolygonClockwise}.
|
|
143
|
+
* **Note:** To translate the polygon's vertices specifically, multiply them to a {@link Transform2D}:
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
* ```gdscript
|
|
147
|
+
*
|
|
148
|
+
* var polygon = PackedVector2Array([Vector2(0, 0), Vector2(100, 0), Vector2(100, 100), Vector2(0, 100)])
|
|
149
|
+
* var offset = Vector2(50, 50)
|
|
150
|
+
* polygon = Transform2D(0, offset) * polygon
|
|
151
|
+
* print(polygon) # Prints [(50.0, 50.0), (150.0, 50.0), (150.0, 150.0), (50.0, 150.0)]
|
|
152
|
+
*
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
static offsetPolygon(polygon: PackedVector2Array, delta: number, joinType?: PolyJoinType /* = 0 */): GodotArray<PackedVector2Array> { return _C($(), 9157, polygon, delta, joinType) as GodotArray<PackedVector2Array>; }
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Inflates or deflates `polyline` by `delta` units (pixels), producing polygons. If `delta` is positive, makes the polyline grow outward. Returns an array of polygons because inflating/deflating may result in multiple discrete polygons. If `delta` is negative, returns an empty array.
|
|
159
|
+
* Each polygon's vertices will be rounded as determined by `joinType`.
|
|
160
|
+
* Each polygon's endpoints will be rounded as determined by `endType`.
|
|
161
|
+
* The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling {@link isPolygonClockwise}.
|
|
162
|
+
*/
|
|
163
|
+
static offsetPolyline(polyline: PackedVector2Array, delta: number, joinType?: PolyJoinType /* = 0 */, endType?: PolyEndType /* = 3 */): GodotArray<PackedVector2Array> { return _C($(), 9158, polyline, delta, joinType, endType) as GodotArray<PackedVector2Array>; }
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Given an array of {@link Vector2}s representing tiles, builds an atlas. The returned dictionary has two keys: `points` is a {@link PackedVector2Array} that specifies the positions of each tile, `size` contains the overall size of the whole atlas as {@link Vector2i}.
|
|
167
|
+
*/
|
|
168
|
+
static makeAtlas(sizes: PackedVector2Array): GodotDictionary { return _C($(), 8725, sizes) as GodotDictionary; }
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Returns the [Bresenham line](https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) between the `from` and `to` points. A Bresenham line is a series of pixels that draws a line and is always 1-pixel thick on every row and column of the drawing (never more, never less).
|
|
172
|
+
* Example code to draw a line between two {@link Marker2D} nodes using a series of {@link CanvasItem.drawRect} calls:
|
|
173
|
+
*
|
|
174
|
+
* ```text
|
|
175
|
+
*
|
|
176
|
+
* func _draw():
|
|
177
|
+
* for pixel in Geometry2D.bresenham_line($MarkerA.position, $MarkerB.position):
|
|
178
|
+
* draw_rect(Rect2(pixel, Vector2.ONE), Color.WHITE)
|
|
179
|
+
*
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
static bresenhamLine(from: Vector2i, to: Vector2i): GodotArray<Vector2i> { return _C($(), 1913, from, to) as GodotArray<Vector2i>; }
|
|
183
|
+
|
|
184
|
+
static readonly name = _R(310, Geometry2D);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export const PolyBooleanOperation = {
|
|
188
|
+
/**
|
|
189
|
+
* Create regions where either subject or clip polygons (or both) are filled.
|
|
190
|
+
*/
|
|
191
|
+
OPERATION_UNION: 0,
|
|
192
|
+
/**
|
|
193
|
+
* Create regions where subject polygons are filled except where clip polygons are filled.
|
|
194
|
+
*/
|
|
195
|
+
OPERATION_DIFFERENCE: 1,
|
|
196
|
+
/**
|
|
197
|
+
* Create regions where both subject and clip polygons are filled.
|
|
198
|
+
*/
|
|
199
|
+
OPERATION_INTERSECTION: 2,
|
|
200
|
+
/**
|
|
201
|
+
* Create regions where either subject or clip polygons are filled but not where both are filled.
|
|
202
|
+
*/
|
|
203
|
+
OPERATION_XOR: 3,
|
|
204
|
+
} as const;
|
|
205
|
+
|
|
206
|
+
export type PolyBooleanOperation = (typeof PolyBooleanOperation)[keyof typeof PolyBooleanOperation];
|
|
207
|
+
|
|
208
|
+
export const PolyJoinType = {
|
|
209
|
+
/**
|
|
210
|
+
* Squaring is applied uniformally at all convex edge joins at `1 * delta`.
|
|
211
|
+
*/
|
|
212
|
+
JOIN_SQUARE: 0,
|
|
213
|
+
/**
|
|
214
|
+
* While flattened paths can never perfectly trace an arc, they are approximated by a series of arc chords.
|
|
215
|
+
*/
|
|
216
|
+
JOIN_ROUND: 1,
|
|
217
|
+
/**
|
|
218
|
+
* There's a necessary limit to mitered joins since offsetting edges that join at very acute angles will produce excessively long and narrow "spikes". For any given edge join, when miter offsetting would exceed that maximum distance, "square" joining is applied.
|
|
219
|
+
*/
|
|
220
|
+
JOIN_MITER: 2,
|
|
221
|
+
} as const;
|
|
222
|
+
|
|
223
|
+
export type PolyJoinType = (typeof PolyJoinType)[keyof typeof PolyJoinType];
|
|
224
|
+
|
|
225
|
+
export const PolyEndType = {
|
|
226
|
+
/**
|
|
227
|
+
* Endpoints are joined using the {@link PolyJoinType} value and the path filled as a polygon.
|
|
228
|
+
*/
|
|
229
|
+
END_POLYGON: 0,
|
|
230
|
+
/**
|
|
231
|
+
* Endpoints are joined using the {@link PolyJoinType} value and the path filled as a polyline.
|
|
232
|
+
*/
|
|
233
|
+
END_JOINED: 1,
|
|
234
|
+
/**
|
|
235
|
+
* Endpoints are squared off with no extension.
|
|
236
|
+
*/
|
|
237
|
+
END_BUTT: 2,
|
|
238
|
+
/**
|
|
239
|
+
* Endpoints are squared off and extended by `delta` units.
|
|
240
|
+
*/
|
|
241
|
+
END_SQUARE: 3,
|
|
242
|
+
/**
|
|
243
|
+
* Endpoints are rounded off and extended by `delta` units.
|
|
244
|
+
*/
|
|
245
|
+
END_ROUND: 4,
|
|
246
|
+
} as const;
|
|
247
|
+
|
|
248
|
+
export type PolyEndType = (typeof PolyEndType)[keyof typeof PolyEndType];
|
|
249
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Auto-generated from extension_api.json - DO NOT EDIT
|
|
2
|
+
// Generated by dev/codegen.ts
|
|
3
|
+
|
|
4
|
+
import { _C, _R, GodotVar } from '../../src/runtime.ts';
|
|
5
|
+
import { Object } from './Object.ts';
|
|
6
|
+
import type { GodotArray, PackedInt32Array, PackedVector3Array, Variant } from '../heap-types/index.ts';
|
|
7
|
+
import type { Plane, Vector3 } from '../value-types/index.ts';
|
|
8
|
+
|
|
9
|
+
let _$: any;
|
|
10
|
+
const $ = () => _$ ?? (_$ = _C(null, 40, 311));
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Provides a set of helper functions to create geometric shapes, compute intersections between shapes, and process various other geometric operations in 3D.
|
|
14
|
+
*/
|
|
15
|
+
export class Geometry3D extends GodotVar {
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Calculates and returns all the vertex points of a convex shape defined by an array of `planes`.
|
|
19
|
+
*/
|
|
20
|
+
static computeConvexMeshPoints(planes: GodotArray<Plane>): PackedVector3Array { return _C($(), 2413, planes) as PackedVector3Array; }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Returns an array with 6 {@link Plane}s that describe the sides of a box centered at the origin. The box size is defined by `extents`, which represents one (positive) corner of the box (i.e. half its actual size).
|
|
24
|
+
*/
|
|
25
|
+
static buildBoxPlanes(extents: Vector3): GodotArray<Plane> { return _C($(), 1932, extents) as GodotArray<Plane>; }
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Returns an array of {@link Plane}s closely bounding a faceted cylinder centered at the origin with radius `radius` and height `height`. The parameter `sides` defines how many planes will be generated for the round part of the cylinder. The parameter `axis` describes the axis along which the cylinder is oriented (0 for X, 1 for Y, 2 for Z).
|
|
29
|
+
*/
|
|
30
|
+
static buildCylinderPlanes(radius: number, height: number, sides: number, axis?: number /* = 2 */): GodotArray<Plane> { return _C($(), 1934, radius, height, sides, axis) as GodotArray<Plane>; }
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns an array of {@link Plane}s closely bounding a faceted capsule centered at the origin with radius `radius` and height `height`. The parameter `sides` defines how many planes will be generated for the side part of the capsule, whereas `lats` gives the number of latitudinal steps at the bottom and top of the capsule. The parameter `axis` describes the axis along which the capsule is oriented (0 for X, 1 for Y, 2 for Z).
|
|
34
|
+
*/
|
|
35
|
+
static buildCapsulePlanes(radius: number, height: number, sides: number, lats: number, axis?: number /* = 2 */): GodotArray<Plane> { return _C($(), 1933, radius, height, sides, lats, axis) as GodotArray<Plane>; }
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Given the two 3D segments (`p1`, `p2`) and (`q1`, `q2`), finds those two points on the two segments that are closest to each other. Returns a {@link PackedVector3Array} that contains this point on (`p1`, `p2`) as well the accompanying point on (`q1`, `q2`).
|
|
39
|
+
*/
|
|
40
|
+
static getClosestPointsBetweenSegments(p1: Vector3, p2: Vector3, q1: Vector3, q2: Vector3): PackedVector3Array { return _C($(), 4177, p1, p2, q1, q2) as PackedVector3Array; }
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Returns the 3D point on the 3D segment (`s1`, `s2`) that is closest to `point`. The returned point will always be inside the specified segment.
|
|
44
|
+
*/
|
|
45
|
+
static getClosestPointToSegment(point: Vector3, s1: Vector3, s2: Vector3): Vector3 { return _C($(), 4175, point, s1, s2) as Vector3; }
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Returns the 3D point on the 3D line defined by (`s1`, `s2`) that is closest to `point`. The returned point can be inside the segment (`s1`, `s2`) or outside of it, i.e. somewhere on the line extending from the segment.
|
|
49
|
+
*/
|
|
50
|
+
static getClosestPointToSegmentUncapped(point: Vector3, s1: Vector3, s2: Vector3): Vector3 { return _C($(), 4176, point, s1, s2) as Vector3; }
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns a {@link Vector3} containing weights based on how close a 3D position (`point`) is to a triangle's different vertices (`a`, `b` and `c`). This is useful for interpolating between the data of different vertices in a triangle. One example use case is using this to smoothly rotate over a mesh instead of relying solely on face normals.
|
|
54
|
+
* [Here is a more detailed explanation of barycentric coordinates.](https://en.wikipedia.org/wiki/Barycentric_coordinate_system)
|
|
55
|
+
*/
|
|
56
|
+
static getTriangleBarycentricCoords(point: Vector3, a: Vector3, b: Vector3, c: Vector3): Vector3 { return _C($(), 6909, point, a, b, c) as Vector3; }
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Tests if the 3D ray starting at `from` with the direction of `dir` intersects the triangle specified by `a`, `b` and `c`. If yes, returns the point of intersection as {@link Vector3}. If no intersection takes place, returns `null`.
|
|
60
|
+
*/
|
|
61
|
+
static rayIntersectsTriangle(from: Vector3, dir: Vector3, a: Vector3, b: Vector3, c: Vector3): Variant | null { return _C($(), 9743, from, dir, a, b, c) as Variant | null; }
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Tests if the segment (`from`, `to`) intersects the triangle `a`, `b`, `c`. If yes, returns the point of intersection as {@link Vector3}. If no intersection takes place, returns `null`.
|
|
65
|
+
*/
|
|
66
|
+
static segmentIntersectsTriangle(from: Vector3, to: Vector3, a: Vector3, b: Vector3, c: Vector3): Variant | null { return _C($(), 10350, from, to, a, b, c) as Variant | null; }
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Checks if the segment (`from`, `to`) intersects the sphere that is located at `spherePosition` and has radius `sphereRadius`. If no, returns an empty {@link PackedVector3Array}. If yes, returns a {@link PackedVector3Array} containing the point of intersection and the sphere's normal at the point of intersection.
|
|
70
|
+
*/
|
|
71
|
+
static segmentIntersectsSphere(from: Vector3, to: Vector3, spherePosition: Vector3, sphereRadius: number): PackedVector3Array { return _C($(), 10349, from, to, spherePosition, sphereRadius) as PackedVector3Array; }
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Checks if the segment (`from`, `to`) intersects the cylinder with height `height` that is centered at the origin and has radius `radius`. If no, returns an empty {@link PackedVector3Array}. If an intersection takes place, the returned array contains the point of intersection and the cylinder's normal at the point of intersection.
|
|
75
|
+
*/
|
|
76
|
+
static segmentIntersectsCylinder(from: Vector3, to: Vector3, height: number, radius: number): PackedVector3Array { return _C($(), 10347, from, to, height, radius) as PackedVector3Array; }
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Given a convex hull defined though the {@link Plane}s in the array `planes`, tests if the segment (`from`, `to`) intersects with that hull. If an intersection is found, returns a {@link PackedVector3Array} containing the point the intersection and the hull's normal. Otherwise, returns an empty array.
|
|
80
|
+
*/
|
|
81
|
+
static segmentIntersectsConvex(from: Vector3, to: Vector3, planes: GodotArray<Plane>): PackedVector3Array { return _C($(), 10346, from, to, planes) as PackedVector3Array; }
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Clips the polygon defined by the points in `points` against the `plane` and returns the points of the clipped polygon.
|
|
85
|
+
*/
|
|
86
|
+
static clipPolygon(points: PackedVector3Array, plane: Plane): PackedVector3Array { return _C($(), 2319, points, plane) as PackedVector3Array; }
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Tetrahedralizes the volume specified by a discrete set of `points` in 3D space, ensuring that no point lies within the circumsphere of any resulting tetrahedron. The method returns a {@link PackedInt32Array} where each tetrahedron consists of four consecutive point indices into the `points` array (resulting in an array with `n * 4` elements, where `n` is the number of tetrahedra found). If the tetrahedralization is unsuccessful, an empty {@link PackedInt32Array} is returned.
|
|
90
|
+
*/
|
|
91
|
+
static tetrahedralizeDelaunay(points: PackedVector3Array): PackedInt32Array { return _C($(), 14150, points) as PackedInt32Array; }
|
|
92
|
+
|
|
93
|
+
static readonly name = _R(311, Geometry3D);
|
|
94
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// Auto-generated from extension_api.json - DO NOT EDIT
|
|
2
|
+
// Generated by dev/codegen.ts
|
|
3
|
+
|
|
4
|
+
import { _C, _R } from '../../src/runtime.ts';
|
|
5
|
+
import { VisualInstance3D } from './VisualInstance3D.ts';
|
|
6
|
+
import type { StringName, Variant } from '../heap-types/index.ts';
|
|
7
|
+
import type { AABB } from '../value-types/index.ts';
|
|
8
|
+
import type { Material } from './Material.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Base node for geometry-based visual instances. Shares some common functionality like visibility and custom materials.
|
|
12
|
+
*/
|
|
13
|
+
export class GeometryInstance3D extends VisualInstance3D {
|
|
14
|
+
constructor(name = 312) { super(name); }
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Set the value of a shader uniform for this instance only ([per-instance uniform]($DOCS_URL/tutorials/shaders/shader_reference/shading_language.html#per-instance-uniforms)). See also {@link ShaderMaterial.setShaderParameter} to assign a uniform on all instances using the same {@link ShaderMaterial}.
|
|
18
|
+
* **Note:** For a shader uniform to be assignable on a per-instance basis, it *must* be defined with `instance uniform ...` rather than `uniform ...` in the shader code.
|
|
19
|
+
* **Note:** `name` is case-sensitive and must match the name of the uniform in the code exactly (not the capitalized name in the inspector).
|
|
20
|
+
* **Note:** Per-instance shader uniforms are only available in Spatial and CanvasItem shaders, but not for Fog, Sky, or Particles shaders.
|
|
21
|
+
*/
|
|
22
|
+
setInstanceShaderParameter(name: StringName, value: Variant): void { _C(this, 11729, name, value); }
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get the value of a shader parameter as set on this instance.
|
|
26
|
+
*/
|
|
27
|
+
getInstanceShaderParameter(name: StringName): Variant { return _C(this, 5138, name) as Variant; }
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The material override for the whole geometry.
|
|
31
|
+
* If a material is assigned to this property, it will be used instead of any material set in any material slot of the mesh.
|
|
32
|
+
*/
|
|
33
|
+
get materialOverride(): Material { return _C(this, 5454) as Material; }
|
|
34
|
+
set materialOverride(v: Material) { _C(this, 11980, v); }
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The material overlay for the whole geometry.
|
|
38
|
+
* If a material is assigned to this property, it will be rendered on top of any other active material for all the surfaces.
|
|
39
|
+
*/
|
|
40
|
+
get materialOverlay(): Material { return _C(this, 5453) as Material; }
|
|
41
|
+
set materialOverlay(v: Material) { _C(this, 11979, v); }
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The transparency applied to the whole geometry (as a multiplier of the materials' existing transparency). `0.0` is fully opaque, while `1.0` is fully transparent. Values greater than `0.0` (exclusive) will force the geometry's materials to go through the transparent pipeline, which is slower to render and can exhibit rendering issues due to incorrect transparency sorting. However, unlike using a transparent material, setting {@link transparency} to a value greater than `0.0` (exclusive) will *not* disable shadow rendering.
|
|
45
|
+
* In spatial shaders, `1.0 - transparency` is set as the default value of the `ALPHA` built-in.
|
|
46
|
+
* **Note:** {@link transparency} is clamped between `0.0` and `1.0`, so this property cannot be used to make transparent materials more opaque than they originally are.
|
|
47
|
+
* **Note:** Only supported when using the Forward+ rendering method. When using the Mobile or Compatibility rendering method, {@link transparency} is ignored and is considered as always being `0.0`.
|
|
48
|
+
*/
|
|
49
|
+
get transparency(): number { return _C(this, 6899) as number; }
|
|
50
|
+
set transparency(v: number) { _C(this, 13148, v); }
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The mode used to cast shadows from this instance.
|
|
54
|
+
*/
|
|
55
|
+
get castShadow(): ShadowCastingSetting { return _C(this, 4096) as ShadowCastingSetting; }
|
|
56
|
+
set castShadow(v: ShadowCastingSetting) { _C(this, 10810, v); }
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The extra distance added to the GeometryInstance3D's bounding box ({@link AABB}) to increase its cull box.
|
|
60
|
+
*/
|
|
61
|
+
get extraCullMargin(): number { return _C(this, 4720) as number; }
|
|
62
|
+
set extraCullMargin(v: number) { _C(this, 11340, v); }
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Overrides the bounding box of this node with a custom one. This can be used to avoid the expensive {@link AABB} recalculation that happens when a skeleton is used with a {@link MeshInstance3D} or to have precise control over the {@link MeshInstance3D}'s bounding box. To use the default AABB, set value to an {@link AABB} with all fields set to `0.0`. To avoid frustum culling, set {@link customAabb} to a very large AABB that covers your entire game world such as `AABB(-10000, -10000, -10000, 20000, 20000, 20000)`. To disable all forms of culling (including occlusion and layer culling), call {@link RenderingServer.instanceSetIgnoreCulling} on the {@link GeometryInstance3D}'s {@link RID}.
|
|
66
|
+
*/
|
|
67
|
+
get customAabb(): AABB { return _C(this, 4375) as AABB; }
|
|
68
|
+
set customAabb(v: AABB) { _C(this, 10999, v); }
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Changes how quickly the mesh transitions to a lower level of detail. A value of 0 will force the mesh to its lowest level of detail, a value of 1 will use the default settings, and larger values will keep the mesh in a higher level of detail at farther distances.
|
|
72
|
+
* Useful for testing level of detail transitions in the editor.
|
|
73
|
+
*/
|
|
74
|
+
get lodBias(): number { return _C(this, 5410) as number; }
|
|
75
|
+
set lodBias(v: number) { _C(this, 11947, v); }
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* If `true`, disables occlusion culling for this instance. Useful for gizmos that must be rendered even when occlusion culling is in use.
|
|
79
|
+
* **Note:** {@link ignoreOcclusionCulling} does not affect frustum culling (which is what happens when an object is not visible given the camera's angle). To avoid frustum culling, set {@link customAabb} to a very large AABB that covers your entire game world such as `AABB(-10000, -10000, -10000, 20000, 20000, 20000)`.
|
|
80
|
+
*/
|
|
81
|
+
get ignoreOcclusionCulling(): boolean { return _C(this, 8005) as boolean; }
|
|
82
|
+
set ignoreOcclusionCulling(v: boolean) { _C(this, 11665, v); }
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The global illumination mode to use for the whole geometry. To avoid inconsistent results, use a mode that matches the purpose of the mesh during gameplay (static/dynamic).
|
|
86
|
+
* **Note:** Lights' bake mode will also affect the global illumination rendering. See {@link Light3D.lightBakeMode}.
|
|
87
|
+
*/
|
|
88
|
+
get giMode(): GIMode { return _C(this, 4919) as GIMode; }
|
|
89
|
+
set giMode(v: GIMode) { _C(this, 11511, v); }
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The texel density to use for lightmapping in {@link LightmapGI}. Greater scale values provide higher resolution in the lightmap, which can result in sharper shadows for lights that have both direct and indirect light baked. However, greater scale values will also increase the space taken by the mesh in the lightmap texture, which increases the memory, storage, and bake time requirements. When using a single mesh at different scales, consider adjusting this value to keep the lightmap texel density consistent across meshes.
|
|
93
|
+
* For example, doubling {@link giLightmapTexelScale} doubles the lightmap texture resolution for this object *on each axis*, so it will *quadruple* the texel count.
|
|
94
|
+
*/
|
|
95
|
+
get giLightmapTexelScale(): number { return _C(this, 5345) as number; }
|
|
96
|
+
set giLightmapTexelScale(v: number) { _C(this, 11902, v); }
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The texel density to use for lightmapping in {@link LightmapGI}.
|
|
100
|
+
*/
|
|
101
|
+
get giLightmapScale(): LightmapScale { return _C(this, 5343) as LightmapScale; }
|
|
102
|
+
set giLightmapScale(v: LightmapScale) { _C(this, 11900, v); }
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Starting distance from which the GeometryInstance3D will be visible, taking {@link visibilityRangeBeginMargin} into account as well. The default value of 0 is used to disable the range check.
|
|
106
|
+
*/
|
|
107
|
+
get visibilityRangeBegin(): number { return _C(this, 7095) as number; }
|
|
108
|
+
set visibilityRangeBegin(v: number) { _C(this, 13324, v); }
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Margin for the {@link visibilityRangeBegin} threshold. The GeometryInstance3D will only change its visibility state when it goes over or under the {@link visibilityRangeBegin} threshold by this amount.
|
|
112
|
+
* If {@link visibilityRangeFadeMode} is {@link VISIBILITY_RANGE_FADE_DISABLED}, this acts as a hysteresis distance. If {@link visibilityRangeFadeMode} is {@link VISIBILITY_RANGE_FADE_SELF} or {@link VISIBILITY_RANGE_FADE_DEPENDENCIES}, this acts as a fade transition distance and must be set to a value greater than `0.0` for the effect to be noticeable.
|
|
113
|
+
*/
|
|
114
|
+
get visibilityRangeBeginMargin(): number { return _C(this, 7096) as number; }
|
|
115
|
+
set visibilityRangeBeginMargin(v: number) { _C(this, 13325, v); }
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Distance from which the GeometryInstance3D will be hidden, taking {@link visibilityRangeEndMargin} into account as well. The default value of 0 is used to disable the range check.
|
|
119
|
+
*/
|
|
120
|
+
get visibilityRangeEnd(): number { return _C(this, 7097) as number; }
|
|
121
|
+
set visibilityRangeEnd(v: number) { _C(this, 13326, v); }
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Margin for the {@link visibilityRangeEnd} threshold. The GeometryInstance3D will only change its visibility state when it goes over or under the {@link visibilityRangeEnd} threshold by this amount.
|
|
125
|
+
* If {@link visibilityRangeFadeMode} is {@link VISIBILITY_RANGE_FADE_DISABLED}, this acts as a hysteresis distance. If {@link visibilityRangeFadeMode} is {@link VISIBILITY_RANGE_FADE_SELF} or {@link VISIBILITY_RANGE_FADE_DEPENDENCIES}, this acts as a fade transition distance and must be set to a value greater than `0.0` for the effect to be noticeable.
|
|
126
|
+
*/
|
|
127
|
+
get visibilityRangeEndMargin(): number { return _C(this, 7098) as number; }
|
|
128
|
+
set visibilityRangeEndMargin(v: number) { _C(this, 13327, v); }
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Controls which instances will be faded when approaching the limits of the visibility range.
|
|
132
|
+
*/
|
|
133
|
+
get visibilityRangeFadeMode(): VisibilityRangeFadeMode { return _C(this, 7099) as VisibilityRangeFadeMode; }
|
|
134
|
+
set visibilityRangeFadeMode(v: VisibilityRangeFadeMode) { _C(this, 13328, v); }
|
|
135
|
+
|
|
136
|
+
static readonly name = _R(312, GeometryInstance3D);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const ShadowCastingSetting = {
|
|
140
|
+
/**
|
|
141
|
+
* Will not cast any shadows. Use this to improve performance for small geometry that is unlikely to cast noticeable shadows (such as debris).
|
|
142
|
+
*/
|
|
143
|
+
SHADOW_CASTING_SETTING_OFF: 0,
|
|
144
|
+
/**
|
|
145
|
+
* Will cast shadows from all visible faces in the GeometryInstance3D.
|
|
146
|
+
* Will take culling into account, so faces not being rendered will not be taken into account when shadow casting.
|
|
147
|
+
*/
|
|
148
|
+
SHADOW_CASTING_SETTING_ON: 1,
|
|
149
|
+
/**
|
|
150
|
+
* Will cast shadows from all visible faces in the GeometryInstance3D.
|
|
151
|
+
* Will not take culling into account, so all faces will be taken into account when shadow casting.
|
|
152
|
+
*/
|
|
153
|
+
SHADOW_CASTING_SETTING_DOUBLE_SIDED: 2,
|
|
154
|
+
/**
|
|
155
|
+
* Will only show the shadows casted from this object.
|
|
156
|
+
* In other words, the actual mesh will not be visible, only the shadows casted from the mesh will be.
|
|
157
|
+
*/
|
|
158
|
+
SHADOW_CASTING_SETTING_SHADOWS_ONLY: 3,
|
|
159
|
+
} as const;
|
|
160
|
+
|
|
161
|
+
export type ShadowCastingSetting = (typeof ShadowCastingSetting)[keyof typeof ShadowCastingSetting];
|
|
162
|
+
|
|
163
|
+
export const GIMode = {
|
|
164
|
+
/**
|
|
165
|
+
* Disabled global illumination mode. Use for dynamic objects that do not contribute to global illumination (such as characters). When using {@link VoxelGI} and SDFGI, the geometry will *receive* indirect lighting and reflections but the geometry will not be considered in GI baking.
|
|
166
|
+
*/
|
|
167
|
+
GI_MODE_DISABLED: 0,
|
|
168
|
+
/**
|
|
169
|
+
* Baked global illumination mode. Use for static objects that contribute to global illumination (such as level geometry). This GI mode is effective when using {@link VoxelGI}, SDFGI and {@link LightmapGI}.
|
|
170
|
+
*/
|
|
171
|
+
GI_MODE_STATIC: 1,
|
|
172
|
+
/**
|
|
173
|
+
* Dynamic global illumination mode. Use for dynamic objects that contribute to global illumination. This GI mode is only effective when using {@link VoxelGI}, but it has a higher performance impact than {@link GI_MODE_STATIC}. When using other GI methods, this will act the same as {@link GI_MODE_DISABLED}. When using {@link LightmapGI}, the object will receive indirect lighting using lightmap probes instead of using the baked lightmap texture.
|
|
174
|
+
*/
|
|
175
|
+
GI_MODE_DYNAMIC: 2,
|
|
176
|
+
} as const;
|
|
177
|
+
|
|
178
|
+
export type GIMode = (typeof GIMode)[keyof typeof GIMode];
|
|
179
|
+
|
|
180
|
+
export const LightmapScale = {
|
|
181
|
+
/**
|
|
182
|
+
* The standard texel density for lightmapping with {@link LightmapGI}.
|
|
183
|
+
*/
|
|
184
|
+
LIGHTMAP_SCALE_1X: 0,
|
|
185
|
+
/**
|
|
186
|
+
* Multiplies texel density by 2× for lightmapping with {@link LightmapGI}. To ensure consistency in texel density, use this when scaling a mesh by a factor between 1.5 and 3.0.
|
|
187
|
+
*/
|
|
188
|
+
LIGHTMAP_SCALE_2X: 1,
|
|
189
|
+
/**
|
|
190
|
+
* Multiplies texel density by 4× for lightmapping with {@link LightmapGI}. To ensure consistency in texel density, use this when scaling a mesh by a factor between 3.0 and 6.0.
|
|
191
|
+
*/
|
|
192
|
+
LIGHTMAP_SCALE_4X: 2,
|
|
193
|
+
/**
|
|
194
|
+
* Multiplies texel density by 8× for lightmapping with {@link LightmapGI}. To ensure consistency in texel density, use this when scaling a mesh by a factor greater than 6.0.
|
|
195
|
+
*/
|
|
196
|
+
LIGHTMAP_SCALE_8X: 3,
|
|
197
|
+
/**
|
|
198
|
+
* Represents the size of the {@link LightmapScale} enum.
|
|
199
|
+
*/
|
|
200
|
+
LIGHTMAP_SCALE_MAX: 4,
|
|
201
|
+
} as const;
|
|
202
|
+
|
|
203
|
+
export type LightmapScale = (typeof LightmapScale)[keyof typeof LightmapScale];
|
|
204
|
+
|
|
205
|
+
export const VisibilityRangeFadeMode = {
|
|
206
|
+
/**
|
|
207
|
+
* Will not fade itself nor its visibility dependencies, hysteresis will be used instead. This is the fastest approach to manual LOD, but it can result in noticeable LOD transitions depending on how the LOD meshes are authored. See {@link visibilityRangeBegin} and {@link Node3D.visibilityParent} for more information.
|
|
208
|
+
*/
|
|
209
|
+
VISIBILITY_RANGE_FADE_DISABLED: 0,
|
|
210
|
+
/**
|
|
211
|
+
* Will fade-out itself when reaching the limits of its own visibility range. This is slower than {@link VISIBILITY_RANGE_FADE_DISABLED}, but it can provide smoother transitions. The fading range is determined by {@link visibilityRangeBeginMargin} and {@link visibilityRangeEndMargin}.
|
|
212
|
+
* **Note:** Only supported when using the Forward+ rendering method. When using the Mobile or Compatibility rendering method, this mode acts like {@link VISIBILITY_RANGE_FADE_DISABLED} but with hysteresis disabled.
|
|
213
|
+
*/
|
|
214
|
+
VISIBILITY_RANGE_FADE_SELF: 1,
|
|
215
|
+
/**
|
|
216
|
+
* Will fade-in its visibility dependencies (see {@link Node3D.visibilityParent}) when reaching the limits of its own visibility range. This is slower than {@link VISIBILITY_RANGE_FADE_DISABLED}, but it can provide smoother transitions. The fading range is determined by {@link visibilityRangeBeginMargin} and {@link visibilityRangeEndMargin}.
|
|
217
|
+
* **Note:** Only supported when using the Forward+ rendering method. When using the Mobile or Compatibility rendering method, this mode acts like {@link VISIBILITY_RANGE_FADE_DISABLED} but with hysteresis disabled.
|
|
218
|
+
*/
|
|
219
|
+
VISIBILITY_RANGE_FADE_DEPENDENCIES: 2,
|
|
220
|
+
} as const;
|
|
221
|
+
|
|
222
|
+
export type VisibilityRangeFadeMode = (typeof VisibilityRangeFadeMode)[keyof typeof VisibilityRangeFadeMode];
|
|
223
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Auto-generated from extension_api.json - DO NOT EDIT
|
|
2
|
+
// Generated by dev/codegen.ts
|
|
3
|
+
|
|
4
|
+
import { _C, _R } from '../../src/runtime.ts';
|
|
5
|
+
import { Object } from './Object.ts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API `libgodot_create_godot_instance`. Only one may be created per process.
|
|
9
|
+
*/
|
|
10
|
+
export class GodotInstance extends Object {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Finishes this instance's startup sequence. Returns `true` on success.
|
|
14
|
+
*/
|
|
15
|
+
start(): boolean { return _C(this, 13829) as boolean; }
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns `true` if this instance has been fully started.
|
|
19
|
+
*/
|
|
20
|
+
isStarted(): boolean { return _C(this, 8337) as boolean; }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Runs a single iteration of the main loop. Returns `true` if the engine is attempting to quit.
|
|
24
|
+
*/
|
|
25
|
+
iteration(): boolean { return _C(this, 8470) as boolean; }
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Notifies the instance that it is now in focus.
|
|
29
|
+
*/
|
|
30
|
+
focusIn(): void { _C(this, 3349); }
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Notifies the instance that it is now not in focus.
|
|
34
|
+
*/
|
|
35
|
+
focusOut(): void { _C(this, 3356); }
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Notifies the instance that it is going to be paused.
|
|
39
|
+
*/
|
|
40
|
+
pause(): void { _C(this, 9383); }
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Notifies the instance that it is being resumed.
|
|
44
|
+
*/
|
|
45
|
+
resume(): void { _C(this, 10099); }
|
|
46
|
+
|
|
47
|
+
static readonly name = _R(313, GodotInstance);
|
|
48
|
+
}
|