@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,1078 @@
|
|
|
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 { Callable, RID, Variant } from '../heap-types/index.ts';
|
|
7
|
+
import type { Transform2D, Vector2 } from '../value-types/index.ts';
|
|
8
|
+
import type { PhysicsDirectBodyState2D } from './PhysicsDirectBodyState2D.ts';
|
|
9
|
+
import type { PhysicsDirectSpaceState2D } from './PhysicsDirectSpaceState2D.ts';
|
|
10
|
+
import type { PhysicsTestMotionParameters2D } from './PhysicsTestMotionParameters2D.ts';
|
|
11
|
+
import type { PhysicsTestMotionResult2D } from './PhysicsTestMotionResult2D.ts';
|
|
12
|
+
|
|
13
|
+
let _$: any;
|
|
14
|
+
const $ = () => _$ ?? (_$ = _C(null, 40, 574));
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* PhysicsServer2D is the server responsible for all 2D physics. It can directly create and manipulate all physics objects:
|
|
18
|
+
* - A *space* is a self-contained world for a physics simulation. It contains bodies, areas, and joints. Its state can be queried for collision and intersection information, and several parameters of the simulation can be modified.
|
|
19
|
+
* - A *shape* is a geometric shape such as a circle, a rectangle, a capsule, or a polygon. It can be used for collision detection by adding it to a body/area, possibly with an extra transformation relative to the body/area's origin. Bodies/areas can have multiple (transformed) shapes added to them, and a single shape can be added to bodies/areas multiple times with different local transformations.
|
|
20
|
+
* - A *body* is a physical object which can be in static, kinematic, or rigid mode. Its state (such as position and velocity) can be queried and updated. A force integration callback can be set to customize the body's physics.
|
|
21
|
+
* - An *area* is a region in space which can be used to detect bodies and areas entering and exiting it. A body monitoring callback can be set to report entering/exiting body shapes, and similarly an area monitoring callback can be set. Gravity and damping can be overridden within the area by setting area parameters.
|
|
22
|
+
* - A *joint* is a constraint, either between two bodies or on one body relative to a point. Parameters such as the joint bias and the rest length of a spring joint can be adjusted.
|
|
23
|
+
* Physics objects in {@link PhysicsServer2D} may be created and manipulated independently; they do not have to be tied to nodes in the scene tree.
|
|
24
|
+
* **Note:** All the 2D physics nodes use the physics server internally. Adding a physics node to the scene tree will cause a corresponding physics object to be created in the physics server. A rigid body node registers a callback that updates the node's transform with the transform of the respective body object in the physics server (every physics update). An area node registers a callback to inform the area node about overlaps with the respective area object in the physics server. The raycast node queries the direct state of the relevant space in the physics server.
|
|
25
|
+
*/
|
|
26
|
+
export class PhysicsServer2D extends GodotVar {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Creates a 2D world boundary shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the shape's normal direction and distance properties.
|
|
30
|
+
*/
|
|
31
|
+
static worldBoundaryShapeCreate(): RID { return _C($(), 14922) as RID; }
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Creates a 2D separation ray shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the shape's `length` and `slide_on_slope` properties.
|
|
35
|
+
*/
|
|
36
|
+
static separationRayShapeCreate(): RID { return _C($(), 10374) as RID; }
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Creates a 2D segment shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the segment's start and end points.
|
|
40
|
+
*/
|
|
41
|
+
static segmentShapeCreate(): RID { return _C($(), 10351) as RID; }
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates a 2D circle shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the circle's radius.
|
|
45
|
+
*/
|
|
46
|
+
static circleShapeCreate(): RID { return _C($(), 2201) as RID; }
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Creates a 2D rectangle shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the rectangle's half-extents.
|
|
50
|
+
*/
|
|
51
|
+
static rectangleShapeCreate(): RID { return _C($(), 9768) as RID; }
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Creates a 2D capsule shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the capsule's height and radius.
|
|
55
|
+
*/
|
|
56
|
+
static capsuleShapeCreate(): RID { return _C($(), 2134) as RID; }
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creates a 2D convex polygon shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the convex polygon's points.
|
|
60
|
+
*/
|
|
61
|
+
static convexPolygonShapeCreate(): RID { return _C($(), 2485) as RID; }
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Creates a 2D concave polygon shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the concave polygon's segments.
|
|
65
|
+
*/
|
|
66
|
+
static concavePolygonShapeCreate(): RID { return _C($(), 2425) as RID; }
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Sets the shape data that defines the configuration of the shape. The `data` to be passed depends on the shape's type (see {@link shapeGetType}):
|
|
70
|
+
* - {@link SHAPE_WORLD_BOUNDARY}: an array of length two containing a {@link Vector2} `normal` direction and a {@link float} distance `d`,
|
|
71
|
+
* - {@link SHAPE_SEPARATION_RAY}: a dictionary containing the key `length` with a {@link float} value and the key `slide_on_slope` with a {@link bool} value,
|
|
72
|
+
* - {@link SHAPE_SEGMENT}: a {@link Rect2} `rect` containing the first point of the segment in `rect.position` and the second point of the segment in `rect.size`,
|
|
73
|
+
* - {@link SHAPE_CIRCLE}: a {@link float} `radius`,
|
|
74
|
+
* - {@link SHAPE_RECTANGLE}: a {@link Vector2} `half_extents`,
|
|
75
|
+
* - {@link SHAPE_CAPSULE}: an array of length two (or a {@link Vector2}) containing a {@link float} `height` and a {@link float} `radius`,
|
|
76
|
+
* - {@link SHAPE_CONVEX_POLYGON}: either a {@link PackedVector2Array} of points defining a convex polygon in counterclockwise order (the clockwise outward normal of each segment formed by consecutive points is calculated internally), or a {@link PackedFloat32Array} of length divisible by four so that every 4-tuple of {@link float}s contains the coordinates of a point followed by the coordinates of the clockwise outward normal vector to the segment between the current point and the next point,
|
|
77
|
+
* - {@link SHAPE_CONCAVE_POLYGON}: a {@link PackedVector2Array} of length divisible by two (each pair of points forms one segment).
|
|
78
|
+
* **Warning:** In the case of {@link SHAPE_CONVEX_POLYGON}, this method does not check if the points supplied actually form a convex polygon (unlike the {@link CollisionPolygon2D.polygon} property).
|
|
79
|
+
*/
|
|
80
|
+
static shapeSetData(shape: RID, data: Variant): void { _C($(), 13476, shape, data); }
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Returns the shape's type.
|
|
84
|
+
*/
|
|
85
|
+
static shapeGetType(shape: RID): ShapeType { return _C($(), 13461, shape) as ShapeType; }
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Returns the shape data that defines the configuration of the shape, such as the half-extents of a rectangle or the segments of a concave shape. See {@link shapeSetData} for the precise format of this data in each case.
|
|
89
|
+
*/
|
|
90
|
+
static shapeGetData(shape: RID): Variant { return _C($(), 13459, shape) as Variant; }
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates a 2D space in the physics server, and returns the {@link RID} that identifies it. A space contains bodies and areas, and controls the stepping of the physics simulation of the objects in it.
|
|
94
|
+
*/
|
|
95
|
+
static spaceCreate(): RID { return _C($(), 13747) as RID; }
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Activates or deactivates the space. If `active` is `false`, then the physics server will not do anything with this space in its physics step.
|
|
99
|
+
*/
|
|
100
|
+
static spaceSetActive(space: RID, active: boolean): void { _C($(), 13751, space, active); }
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns `true` if the space is active.
|
|
104
|
+
*/
|
|
105
|
+
static spaceIsActive(space: RID): boolean { return _C($(), 13750, space) as boolean; }
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Sets the value of the given space parameter.
|
|
109
|
+
*/
|
|
110
|
+
static spaceSetParam(space: RID, param: SpaceParameter, value: number): void { _C($(), 13752, space, param, value); }
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns the value of the given space parameter.
|
|
114
|
+
*/
|
|
115
|
+
static spaceGetParam(space: RID, param: SpaceParameter): number { return _C($(), 13749, space, param) as number; }
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns the state of a space, a {@link PhysicsDirectSpaceState2D}. This object can be used for collision/intersection queries.
|
|
119
|
+
*/
|
|
120
|
+
static spaceGetDirectState(space: RID): PhysicsDirectSpaceState2D { return _C($(), 13748, space) as PhysicsDirectSpaceState2D; }
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Creates a 2D area object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and `monitorable` set to `false`.
|
|
124
|
+
* Use {@link areaAddShape} to add shapes to it, use {@link areaSetTransform} to set its transform, and use {@link areaSetSpace} to add the area to a space. If you want the area to be detectable use {@link areaSetMonitorable}.
|
|
125
|
+
*/
|
|
126
|
+
static areaCreate(): RID { return _C($(), 1556) as RID; }
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Adds the area to the given space, after removing the area from the previously assigned space (if any).
|
|
130
|
+
* **Note:** To remove an area from a space without immediately adding it back elsewhere, use `PhysicsServer2D.area_set_space(area, RID())`.
|
|
131
|
+
*/
|
|
132
|
+
static areaSetSpace(area: RID, space: RID): void { _C($(), 1584, area, space); }
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns the {@link RID} of the space assigned to the area. Returns an empty {@link RID} if no space is assigned.
|
|
136
|
+
*/
|
|
137
|
+
static areaGetSpace(area: RID): RID { return _C($(), 1567, area) as RID; }
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Adds a shape to the area, with the given local transform. The shape (together with its `transform` and `disabled` properties) is added to an array of shapes, and the shapes of an area are usually referenced by their index in this array.
|
|
141
|
+
*/
|
|
142
|
+
static areaAddShape(area: RID, shape: RID, transform?: Transform2D /* = Transform2D(1, 0, 0, 1, 0, 0) */, disabled?: boolean /* = false */): void { _C($(), 1551, area, shape, transform, disabled); }
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Replaces the area's shape at the given index by another shape, while not affecting the `transform` and `disabled` properties at the same index.
|
|
146
|
+
*/
|
|
147
|
+
static areaSetShape(area: RID, shapeIdx: number, shape: RID): void { _C($(), 1581, area, shapeIdx, shape); }
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Sets the local transform matrix of the area's shape with the given index.
|
|
151
|
+
*/
|
|
152
|
+
static areaSetShapeTransform(area: RID, shapeIdx: number, transform: Transform2D): void { _C($(), 1583, area, shapeIdx, transform); }
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Sets the disabled property of the area's shape with the given index. If `disabled` is `true`, then the shape will not detect any other shapes entering or exiting it.
|
|
156
|
+
*/
|
|
157
|
+
static areaSetShapeDisabled(area: RID, shapeIdx: number, disabled: boolean): void { _C($(), 1582, area, shapeIdx, disabled); }
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Returns the number of shapes added to the area.
|
|
161
|
+
*/
|
|
162
|
+
static areaGetShapeCount(area: RID): number { return _C($(), 1565, area) as number; }
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Returns the {@link RID} of the shape with the given index in the area's array of shapes.
|
|
166
|
+
*/
|
|
167
|
+
static areaGetShape(area: RID, shapeIdx: number): RID { return _C($(), 1564, area, shapeIdx) as RID; }
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Returns the local transform matrix of the shape with the given index in the area's array of shapes.
|
|
171
|
+
*/
|
|
172
|
+
static areaGetShapeTransform(area: RID, shapeIdx: number): Transform2D { return _C($(), 1566, area, shapeIdx) as Transform2D; }
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Removes the shape with the given index from the area's array of shapes. The shape itself is not deleted, so it can continue to be used elsewhere or added back later. As a result of this operation, the area's shapes which used to have indices higher than `shapeIdx` will have their index decreased by one.
|
|
176
|
+
*/
|
|
177
|
+
static areaRemoveShape(area: RID, shapeIdx: number): void { _C($(), 1573, area, shapeIdx); }
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Removes all shapes from the area. This does not delete the shapes themselves, so they can continue to be used elsewhere or added back later.
|
|
181
|
+
*/
|
|
182
|
+
static areaClearShapes(area: RID): void { _C($(), 1555, area); }
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Assigns the area to one or many physics layers, via a bitmask.
|
|
186
|
+
*/
|
|
187
|
+
static areaSetCollisionLayer(area: RID, layer: number /* uint32 */): void { _C($(), 1575, area, layer); }
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Returns the physics layer or layers the area belongs to, as a bitmask.
|
|
191
|
+
*/
|
|
192
|
+
static areaGetCollisionLayer(area: RID): number { return _C($(), 1560, area) as number; }
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Sets which physics layers the area will monitor, via a bitmask.
|
|
196
|
+
*/
|
|
197
|
+
static areaSetCollisionMask(area: RID, mask: number /* uint32 */): void { _C($(), 1576, area, mask); }
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Returns the physics layer or layers the area can contact with, as a bitmask.
|
|
201
|
+
*/
|
|
202
|
+
static areaGetCollisionMask(area: RID): number { return _C($(), 1561, area) as number; }
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Sets the value of the given area parameter.
|
|
206
|
+
*/
|
|
207
|
+
static areaSetParam(area: RID, param: AreaParameter, value: Variant): void { _C($(), 1579, area, param, value); }
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Sets the transform matrix of the area.
|
|
211
|
+
*/
|
|
212
|
+
static areaSetTransform(area: RID, transform: Transform2D): void { _C($(), 1585, area, transform); }
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Returns the value of the given area parameter.
|
|
216
|
+
*/
|
|
217
|
+
static areaGetParam(area: RID, param: AreaParameter): Variant { return _C($(), 1563, area, param) as Variant; }
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Returns the transform matrix of the area.
|
|
221
|
+
*/
|
|
222
|
+
static areaGetTransform(area: RID): Transform2D { return _C($(), 1568, area) as Transform2D; }
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Attaches the `ObjectID` of an {@link Object} to the area. Use {@link Object.getInstanceId} to get the `ObjectID` of a {@link CollisionObject2D}.
|
|
226
|
+
*/
|
|
227
|
+
static areaAttachObjectInstanceId(area: RID, id: number /* uint64 */): void { _C($(), 1553, area, id); }
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Returns the `ObjectID` attached to the area. Use {@link instanceFromId} to retrieve an {@link Object} from a nonzero `ObjectID`.
|
|
231
|
+
*/
|
|
232
|
+
static areaGetObjectInstanceId(area: RID): number { return _C($(), 1562, area) as number; }
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Attaches the `ObjectID` of a canvas to the area. Use {@link Object.getInstanceId} to get the `ObjectID` of a {@link CanvasLayer}.
|
|
236
|
+
*/
|
|
237
|
+
static areaAttachCanvasInstanceId(area: RID, id: number /* uint64 */): void { _C($(), 1552, area, id); }
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Returns the `ObjectID` of the canvas attached to the area. Use {@link instanceFromId} to retrieve a {@link CanvasLayer} from a nonzero `ObjectID`.
|
|
241
|
+
*/
|
|
242
|
+
static areaGetCanvasInstanceId(area: RID): number { return _C($(), 1559, area) as number; }
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Sets the area's body monitor callback. This callback will be called when any other (shape of a) body enters or exits (a shape of) the given area, and must take the following five parameters:
|
|
246
|
+
* 1. an integer `status`: either {@link AREA_BODY_ADDED} or {@link AREA_BODY_REMOVED} depending on whether the other body shape entered or exited the area,
|
|
247
|
+
* 2. an {@link RID} `body_rid`: the {@link RID} of the body that entered or exited the area,
|
|
248
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the body,
|
|
249
|
+
* 4. an integer `body_shape_idx`: the index of the shape of the body that entered or exited the area,
|
|
250
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the body entered or exited.
|
|
251
|
+
* By counting (or keeping track of) the shapes that enter and exit, it can be determined if a body (with all its shapes) is entering for the first time or exiting for the last time.
|
|
252
|
+
*/
|
|
253
|
+
static areaSetMonitorCallback(area: RID, callback: Callable): void { _C($(), 1577, area, callback); }
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Sets the area's area monitor callback. This callback will be called when any other (shape of an) area enters or exits (a shape of) the given area, and must take the following five parameters:
|
|
257
|
+
* 1. an integer `status`: either {@link AREA_BODY_ADDED} or {@link AREA_BODY_REMOVED} depending on whether the other area's shape entered or exited the area,
|
|
258
|
+
* 2. an {@link RID} `area_rid`: the {@link RID} of the other area that entered or exited the area,
|
|
259
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the other area,
|
|
260
|
+
* 4. an integer `area_shape_idx`: the index of the shape of the other area that entered or exited the area,
|
|
261
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the other area entered or exited.
|
|
262
|
+
* By counting (or keeping track of) the shapes that enter and exit, it can be determined if an area (with all its shapes) is entering for the first time or exiting for the last time.
|
|
263
|
+
*/
|
|
264
|
+
static areaSetAreaMonitorCallback(area: RID, callback: Callable): void { _C($(), 1574, area, callback); }
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Sets whether the area is monitorable or not. If `monitorable` is `true`, the area monitoring callback of other areas will be called when this area enters or exits them.
|
|
268
|
+
*/
|
|
269
|
+
static areaSetMonitorable(area: RID, monitorable: boolean): void { _C($(), 1578, area, monitorable); }
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Creates a 2D body object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and body mode set to {@link BODY_MODE_RIGID}.
|
|
273
|
+
* Use {@link bodyAddShape} to add shapes to it, use {@link bodySetState} to set its transform, and use {@link bodySetSpace} to add the body to a space.
|
|
274
|
+
*/
|
|
275
|
+
static bodyCreate(): RID { return _C($(), 1819) as RID; }
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Adds the body to the given space, after removing the body from the previously assigned space (if any). If the body's mode is set to {@link BODY_MODE_RIGID}, then adding the body to a space will have the following additional effects:
|
|
279
|
+
* - If the parameter {@link BODY_PARAM_CENTER_OF_MASS} has never been set explicitly, then the value of that parameter will be recalculated based on the body's shapes.
|
|
280
|
+
* - If the parameter {@link BODY_PARAM_INERTIA} is set to a value `<= 0.0`, then the value of that parameter will be recalculated based on the body's shapes, mass, and center of mass.
|
|
281
|
+
* **Note:** To remove a body from a space without immediately adding it back elsewhere, use `PhysicsServer2D.body_set_space(body, RID())`.
|
|
282
|
+
*/
|
|
283
|
+
static bodySetSpace(body: RID, space: RID): void { _C($(), 1866, body, space); }
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Returns the {@link RID} of the space assigned to the body. Returns an empty {@link RID} if no space is assigned.
|
|
287
|
+
*/
|
|
288
|
+
static bodyGetSpace(body: RID): RID { return _C($(), 1838, body) as RID; }
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Sets the body's mode.
|
|
292
|
+
*/
|
|
293
|
+
static bodySetMode(body: RID, mode: BodyMode): void { _C($(), 1858, body, mode); }
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Returns the body's mode.
|
|
297
|
+
*/
|
|
298
|
+
static bodyGetMode(body: RID): BodyMode { return _C($(), 1832, body) as BodyMode; }
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Adds a shape to the area, with the given local transform. The shape (together with its `transform` and `disabled` properties) is added to an array of shapes, and the shapes of a body are usually referenced by their index in this array.
|
|
302
|
+
*/
|
|
303
|
+
static bodyAddShape(body: RID, shape: RID, transform?: Transform2D /* = Transform2D(1, 0, 0, 1, 0, 0) */, disabled?: boolean /* = false */): void { _C($(), 1809, body, shape, transform, disabled); }
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Replaces the body's shape at the given index by another shape, while not affecting the `transform`, `disabled`, and one-way collision properties at the same index.
|
|
307
|
+
*/
|
|
308
|
+
static bodySetShape(body: RID, shapeIdx: number, shape: RID): void { _C($(), 1862, body, shapeIdx, shape); }
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Sets the local transform matrix of the body's shape with the given index.
|
|
312
|
+
*/
|
|
313
|
+
static bodySetShapeTransform(body: RID, shapeIdx: number, transform: Transform2D): void { _C($(), 1865, body, shapeIdx, transform); }
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Returns the number of shapes added to the body.
|
|
317
|
+
*/
|
|
318
|
+
static bodyGetShapeCount(body: RID): number { return _C($(), 1836, body) as number; }
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Returns the {@link RID} of the shape with the given index in the body's array of shapes.
|
|
322
|
+
*/
|
|
323
|
+
static bodyGetShape(body: RID, shapeIdx: number): RID { return _C($(), 1835, body, shapeIdx) as RID; }
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Returns the local transform matrix of the shape with the given index in the area's array of shapes.
|
|
327
|
+
*/
|
|
328
|
+
static bodyGetShapeTransform(body: RID, shapeIdx: number): Transform2D { return _C($(), 1837, body, shapeIdx) as Transform2D; }
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Removes the shape with the given index from the body's array of shapes. The shape itself is not deleted, so it can continue to be used elsewhere or added back later. As a result of this operation, the body's shapes which used to have indices higher than `shapeIdx` will have their index decreased by one.
|
|
332
|
+
*/
|
|
333
|
+
static bodyRemoveShape(body: RID, shapeIdx: number): void { _C($(), 1845, body, shapeIdx); }
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Removes all shapes from the body. This does not delete the shapes themselves, so they can continue to be used elsewhere or added back later.
|
|
337
|
+
*/
|
|
338
|
+
static bodyClearShapes(body: RID): void { _C($(), 1818, body); }
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Sets the disabled property of the body's shape with the given index. If `disabled` is `true`, then the shape will be ignored in all collision detection.
|
|
342
|
+
*/
|
|
343
|
+
static bodySetShapeDisabled(body: RID, shapeIdx: number, disabled: boolean): void { _C($(), 1864, body, shapeIdx, disabled); }
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Sets the one-way collision properties of the body's shape with the given index. If `enable` is `true`, the one-way collision direction given by `direction` in the shape's local space (that is `body_get_shape_transform(body, shape_idx).basis_xform(direction).normalized()` in the body's local space) will be used to ignore collisions with the shape in the opposite direction, and to ensure depenetration of kinematic bodies happens in this direction.
|
|
347
|
+
*/
|
|
348
|
+
static bodySetShapeAsOneWayCollision(body: RID, shapeIdx: number, enable: boolean, margin: number, direction?: Vector2 /* = Vector2(0, 1) */): void { _C($(), 1863, body, shapeIdx, enable, margin, direction); }
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Attaches the `ObjectID` of an {@link Object} to the body. Use {@link Object.getInstanceId} to get the `ObjectID` of a {@link CollisionObject2D}.
|
|
352
|
+
*/
|
|
353
|
+
static bodyAttachObjectInstanceId(body: RID, id: number /* uint64 */): void { _C($(), 1817, body, id); }
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Returns the `ObjectID` attached to the body. Use {@link instanceFromId} to retrieve an {@link Object} from a nonzero `ObjectID`.
|
|
357
|
+
*/
|
|
358
|
+
static bodyGetObjectInstanceId(body: RID): number { return _C($(), 1833, body) as number; }
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Attaches the `ObjectID` of a canvas to the body. Use {@link Object.getInstanceId} to get the `ObjectID` of a {@link CanvasLayer}.
|
|
362
|
+
*/
|
|
363
|
+
static bodyAttachCanvasInstanceId(body: RID, id: number /* uint64 */): void { _C($(), 1816, body, id); }
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Returns the `ObjectID` of the canvas attached to the body. Use {@link instanceFromId} to retrieve a {@link CanvasLayer} from a nonzero `ObjectID`.
|
|
367
|
+
*/
|
|
368
|
+
static bodyGetCanvasInstanceId(body: RID): number { return _C($(), 1823, body) as number; }
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Sets the continuous collision detection mode.
|
|
372
|
+
* Continuous collision detection tries to predict where a moving body would collide in between physics updates, instead of moving it and correcting its movement if it collided.
|
|
373
|
+
*/
|
|
374
|
+
static bodySetContinuousCollisionDetectionMode(body: RID, mode: CCDMode): void { _C($(), 1854, body, mode); }
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Returns the body's continuous collision detection mode.
|
|
378
|
+
*/
|
|
379
|
+
static bodyGetContinuousCollisionDetectionMode(body: RID): CCDMode { return _C($(), 1829, body) as CCDMode; }
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Sets the physics layer or layers the body belongs to, via a bitmask.
|
|
383
|
+
*/
|
|
384
|
+
static bodySetCollisionLayer(body: RID, layer: number /* uint32 */): void { _C($(), 1849, body, layer); }
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Returns the physics layer or layers the body belongs to, as a bitmask.
|
|
388
|
+
*/
|
|
389
|
+
static bodyGetCollisionLayer(body: RID): number { return _C($(), 1824, body) as number; }
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Sets the physics layer or layers the body can collide with, via a bitmask.
|
|
393
|
+
*/
|
|
394
|
+
static bodySetCollisionMask(body: RID, mask: number /* uint32 */): void { _C($(), 1850, body, mask); }
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Returns the physics layer or layers the body can collide with, as a bitmask.
|
|
398
|
+
*/
|
|
399
|
+
static bodyGetCollisionMask(body: RID): number { return _C($(), 1825, body) as number; }
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Sets the body's collision priority. This is used in the depenetration phase of {@link bodyTestMotion}. The higher the priority is, the lower the penetration into the body will be.
|
|
403
|
+
*/
|
|
404
|
+
static bodySetCollisionPriority(body: RID, priority: number): void { _C($(), 1851, body, priority); }
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Returns the body's collision priority. This is used in the depenetration phase of {@link bodyTestMotion}. The higher the priority is, the lower the penetration into the body will be.
|
|
408
|
+
*/
|
|
409
|
+
static bodyGetCollisionPriority(body: RID): number { return _C($(), 1826, body) as number; }
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Sets the value of the given body parameter.
|
|
413
|
+
*/
|
|
414
|
+
static bodySetParam(body: RID, param: BodyParameter, value: Variant): void { _C($(), 1860, body, param, value); }
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Returns the value of the given body parameter.
|
|
418
|
+
*/
|
|
419
|
+
static bodyGetParam(body: RID, param: BodyParameter): Variant { return _C($(), 1834, body, param) as Variant; }
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Restores the default inertia and center of mass of the body based on its shapes. This undoes any custom values previously set using {@link bodySetParam}.
|
|
423
|
+
*/
|
|
424
|
+
static bodyResetMassProperties(body: RID): void { _C($(), 1846, body); }
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Sets the value of a body's state.
|
|
428
|
+
* **Note:** The state change doesn't take effect immediately. The state will change on the next physics frame.
|
|
429
|
+
*/
|
|
430
|
+
static bodySetState(body: RID, state: BodyState, value: Variant): void { _C($(), 1867, body, state, value); }
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Returns the value of the given state of the body.
|
|
434
|
+
*/
|
|
435
|
+
static bodyGetState(body: RID, state: BodyState): Variant { return _C($(), 1839, body, state) as Variant; }
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Applies a directional impulse to the body, at the body's center of mass. The impulse does not affect rotation.
|
|
439
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
440
|
+
* This is equivalent to using {@link bodyApplyImpulse} at the body's center of mass.
|
|
441
|
+
*/
|
|
442
|
+
static bodyApplyCentralImpulse(body: RID, impulse: Vector2): void { _C($(), 1811, body, impulse); }
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Applies a rotational impulse to the body. The impulse does not affect position.
|
|
446
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
447
|
+
*/
|
|
448
|
+
static bodyApplyTorqueImpulse(body: RID, impulse: number): void { _C($(), 1815, body, impulse); }
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Applies a positioned impulse to the body. The impulse can affect rotation if `position` is different from the body's center of mass.
|
|
452
|
+
* An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
|
453
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
454
|
+
*/
|
|
455
|
+
static bodyApplyImpulse(body: RID, impulse: Vector2, position?: Vector2 /* = Vector2(0, 0) */): void { _C($(), 1813, body, impulse, position); }
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Applies a directional force to the body, at the body's center of mass. The force does not affect rotation. A force is time dependent and meant to be applied every physics update.
|
|
459
|
+
* This is equivalent to using {@link bodyApplyForce} at the body's center of mass.
|
|
460
|
+
*/
|
|
461
|
+
static bodyApplyCentralForce(body: RID, force: Vector2): void { _C($(), 1810, body, force); }
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Applies a positioned force to the body. The force can affect rotation if `position` is different from the body's center of mass. A force is time dependent and meant to be applied every physics update.
|
|
465
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
466
|
+
*/
|
|
467
|
+
static bodyApplyForce(body: RID, force: Vector2, position?: Vector2 /* = Vector2(0, 0) */): void { _C($(), 1812, body, force, position); }
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Applies a rotational force to the body. The force does not affect position. A force is time dependent and meant to be applied every physics update.
|
|
471
|
+
*/
|
|
472
|
+
static bodyApplyTorque(body: RID, torque: number): void { _C($(), 1814, body, torque); }
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Adds a constant directional force to the body. The force does not affect rotation. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_force(body, Vector2(0, 0))`.
|
|
476
|
+
* This is equivalent to using {@link bodyAddConstantForce} at the body's center of mass.
|
|
477
|
+
*/
|
|
478
|
+
static bodyAddConstantCentralForce(body: RID, force: Vector2): void { _C($(), 1806, body, force); }
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Adds a constant positioned force to the body. The force can affect rotation if `position` is different from the body's center of mass. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_force(body, Vector2(0, 0))`.
|
|
482
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
483
|
+
*/
|
|
484
|
+
static bodyAddConstantForce(body: RID, force: Vector2, position?: Vector2 /* = Vector2(0, 0) */): void { _C($(), 1807, body, force, position); }
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Adds a constant rotational force to the body. The force does not affect position. The force remains applied over time until cleared with `PhysicsServer2D.body_set_constant_torque(body, 0)`.
|
|
488
|
+
*/
|
|
489
|
+
static bodyAddConstantTorque(body: RID, torque: number): void { _C($(), 1808, body, torque); }
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Sets the body's total constant positional force applied during each physics update.
|
|
493
|
+
* See {@link bodyAddConstantForce} and {@link bodyAddConstantCentralForce}.
|
|
494
|
+
*/
|
|
495
|
+
static bodySetConstantForce(body: RID, force: Vector2): void { _C($(), 1852, body, force); }
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Returns the body's total constant positional force applied during each physics update.
|
|
499
|
+
* See {@link bodyAddConstantForce} and {@link bodyAddConstantCentralForce}.
|
|
500
|
+
*/
|
|
501
|
+
static bodyGetConstantForce(body: RID): Vector2 { return _C($(), 1827, body) as Vector2; }
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Sets the body's total constant rotational force applied during each physics update.
|
|
505
|
+
* See {@link bodyAddConstantTorque}.
|
|
506
|
+
*/
|
|
507
|
+
static bodySetConstantTorque(body: RID, torque: number): void { _C($(), 1853, body, torque); }
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Returns the body's total constant rotational force applied during each physics update.
|
|
511
|
+
* See {@link bodyAddConstantTorque}.
|
|
512
|
+
*/
|
|
513
|
+
static bodyGetConstantTorque(body: RID): number { return _C($(), 1828, body) as number; }
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Modifies the body's linear velocity so that its projection to the axis `axis_velocity.normalized()` is exactly `axis_velocity.length()`. This is useful for jumping behavior.
|
|
517
|
+
*/
|
|
518
|
+
static bodySetAxisVelocity(body: RID, axisVelocity: Vector2): void { _C($(), 1848, body, axisVelocity); }
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Adds `exceptedBody` to the body's list of collision exceptions, so that collisions with it are ignored.
|
|
522
|
+
*/
|
|
523
|
+
static bodyAddCollisionException(body: RID, exceptedBody: RID): void { _C($(), 1805, body, exceptedBody); }
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Removes `exceptedBody` from the body's list of collision exceptions, so that collisions with it are no longer ignored.
|
|
527
|
+
*/
|
|
528
|
+
static bodyRemoveCollisionException(body: RID, exceptedBody: RID): void { _C($(), 1844, body, exceptedBody); }
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Sets the maximum number of contacts that the body can report. If `amount` is greater than zero, then the body will keep track of at most this many contacts with other bodies.
|
|
532
|
+
*/
|
|
533
|
+
static bodySetMaxContactsReported(body: RID, amount: number): void { _C($(), 1857, body, amount); }
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Returns the maximum number of contacts that the body can report. See {@link bodySetMaxContactsReported}.
|
|
537
|
+
*/
|
|
538
|
+
static bodyGetMaxContactsReported(body: RID): number { return _C($(), 1831, body) as number; }
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Sets whether the body omits the standard force integration. If `enable` is `true`, the body will not automatically use applied forces, torques, and damping to update the body's linear and angular velocity. In this case, {@link bodySetForceIntegrationCallback} can be used to manually update the linear and angular velocity instead.
|
|
542
|
+
* This method is called when the property {@link RigidBody2D.customIntegrator} is set.
|
|
543
|
+
*/
|
|
544
|
+
static bodySetOmitForceIntegration(body: RID, enable: boolean): void { _C($(), 1859, body, enable); }
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Returns `true` if the body is omitting the standard force integration. See {@link bodySetOmitForceIntegration}.
|
|
548
|
+
*/
|
|
549
|
+
static bodyIsOmittingForceIntegration(body: RID): boolean { return _C($(), 1842, body) as boolean; }
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Sets the body's state synchronization callback function to `callable`. Use an empty {@link Callable} ({@link code skip-lint}Callable()[/code]) to clear the callback.
|
|
553
|
+
* The function `callable` will be called every physics frame, assuming that the body was active during the previous physics tick, and can be used to fetch the latest state from the physics server.
|
|
554
|
+
* The function `callable` must take the following parameters:
|
|
555
|
+
* 1. `state`: a {@link PhysicsDirectBodyState2D}, used to retrieve the body's state.
|
|
556
|
+
*/
|
|
557
|
+
static bodySetStateSyncCallback(body: RID, callable: Callable): void { _C($(), 1868, body, callable); }
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Sets the body's custom force integration callback function to `callable`. Use an empty {@link Callable} ({@link code skip-lint}Callable()[/code]) to clear the custom callback.
|
|
561
|
+
* The function `callable` will be called every physics tick, before the standard force integration (see {@link bodySetOmitForceIntegration}). It can be used for example to update the body's linear and angular velocity based on contact with other bodies.
|
|
562
|
+
* If `userdata` is not `null`, the function `callable` must take the following two parameters:
|
|
563
|
+
* 1. `state`: a {@link PhysicsDirectBodyState2D} used to retrieve and modify the body's state,
|
|
564
|
+
* 2. {@link code skip-lint}userdata: a {@link Variant}; its value will be the `userdata` passed into this method.
|
|
565
|
+
* If `userdata` is `null`, then `callable` must take only the `state` parameter.
|
|
566
|
+
*/
|
|
567
|
+
static bodySetForceIntegrationCallback(body: RID, callable: Callable, userdata?: Variant /* = null */): void { _C($(), 1856, body, callable, userdata); }
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Returns `true` if a collision would result from moving the body along a motion vector from a given point in space. See {@link PhysicsTestMotionParameters2D} for the available motion parameters. Optionally a {@link PhysicsTestMotionResult2D} object can be passed, which will be used to store the information about the resulting collision.
|
|
571
|
+
*/
|
|
572
|
+
static bodyTestMotion(body: RID, parameters: PhysicsTestMotionParameters2D, result?: PhysicsTestMotionResult2D /* = null */): boolean { return _C($(), 1872, body, parameters, result) as boolean; }
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Returns the {@link PhysicsDirectBodyState2D} of the body. Returns `null` if the body is destroyed or not assigned to a space.
|
|
576
|
+
*/
|
|
577
|
+
static bodyGetDirectState(body: RID): PhysicsDirectBodyState2D | null { return _C($(), 1830, body) as PhysicsDirectBodyState2D | null; }
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Creates a 2D joint in the physics server, and returns the {@link RID} that identifies it. To set the joint type, use {@link jointMakeDampedSpring}, {@link jointMakeGroove} or {@link jointMakePin}. Use {@link jointSetParam} to set generic joint parameters.
|
|
581
|
+
*/
|
|
582
|
+
static jointCreate(): RID { return _C($(), 8478) as RID; }
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Destroys the joint with the given {@link RID}, creates a new uninitialized joint, and makes the {@link RID} refer to this new joint.
|
|
586
|
+
*/
|
|
587
|
+
static jointClear(joint: RID): void { _C($(), 8476, joint); }
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Sets the value of the given joint parameter.
|
|
591
|
+
*/
|
|
592
|
+
static jointSetParam(joint: RID, param: JointParam, value: number): void { _C($(), 8496, joint, param, value); }
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Returns the value of the given joint parameter.
|
|
596
|
+
*/
|
|
597
|
+
static jointGetParam(joint: RID, param: JointParam): number { return _C($(), 8480, joint, param) as number; }
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Sets whether the bodies attached to the {@link Joint2D} will collide with each other.
|
|
601
|
+
*/
|
|
602
|
+
static jointDisableCollisionsBetweenBodies(joint: RID, disable: boolean): void { _C($(), 8479, joint, disable); }
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Returns whether the bodies attached to the {@link Joint2D} will collide with each other.
|
|
606
|
+
*/
|
|
607
|
+
static jointIsDisabledCollisionsBetweenBodies(joint: RID): boolean { return _C($(), 8485, joint) as boolean; }
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Makes the joint a pin joint. If `bodyB` is an empty {@link RID}, then `bodyA` is pinned to the point `anchor` (given in global coordinates); otherwise, `bodyA` is pinned to `bodyB` at the point `anchor` (given in global coordinates). To set the parameters which are specific to the pin joint, see {@link pinJointSetParam}.
|
|
611
|
+
*/
|
|
612
|
+
static jointMakePin(joint: RID, anchor: Vector2, bodyA: RID, bodyB?: RID /* = RID() */): void { _C($(), 8491, joint, anchor, bodyA, bodyB); }
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Makes the joint a groove joint.
|
|
616
|
+
*/
|
|
617
|
+
static jointMakeGroove(joint: RID, groove1A: Vector2, groove2A: Vector2, anchorB: Vector2, bodyA?: RID /* = RID() */, bodyB?: RID /* = RID() */): void { _C($(), 8489, joint, groove1A, groove2A, anchorB, bodyA, bodyB); }
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Makes the joint a damped spring joint, attached at the point `anchorA` (given in global coordinates) on the body `bodyA` and at the point `anchorB` (given in global coordinates) on the body `bodyB`. To set the parameters which are specific to the damped spring, see {@link dampedSpringJointSetParam}.
|
|
621
|
+
*/
|
|
622
|
+
static jointMakeDampedSpring(joint: RID, anchorA: Vector2, anchorB: Vector2, bodyA: RID, bodyB?: RID /* = RID() */): void { _C($(), 8487, joint, anchorA, anchorB, bodyA, bodyB); }
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Sets a pin joint flag.
|
|
626
|
+
*/
|
|
627
|
+
static pinJointSetFlag(joint: RID, flag: PinJointFlag, enabled: boolean): void { _C($(), 9424, joint, flag, enabled); }
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Gets a pin joint flag.
|
|
631
|
+
*/
|
|
632
|
+
static pinJointGetFlag(joint: RID, flag: PinJointFlag): boolean { return _C($(), 9420, joint, flag) as boolean; }
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Sets a pin joint parameter.
|
|
636
|
+
*/
|
|
637
|
+
static pinJointSetParam(joint: RID, param: PinJointParam, value: number): void { _C($(), 9427, joint, param, value); }
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Returns the value of a pin joint parameter.
|
|
641
|
+
*/
|
|
642
|
+
static pinJointGetParam(joint: RID, param: PinJointParam): number { return _C($(), 9423, joint, param) as number; }
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Sets the value of the given damped spring joint parameter.
|
|
646
|
+
*/
|
|
647
|
+
static dampedSpringJointSetParam(joint: RID, param: DampedSpringParam, value: number): void { _C($(), 2643, joint, param, value); }
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Returns the value of the given damped spring joint parameter.
|
|
651
|
+
*/
|
|
652
|
+
static dampedSpringJointGetParam(joint: RID, param: DampedSpringParam): number { return _C($(), 2642, joint, param) as number; }
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Returns the joint's type.
|
|
656
|
+
*/
|
|
657
|
+
static jointGetType(joint: RID): JointType { return _C($(), 8482, joint) as JointType; }
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Destroys any of the objects created by PhysicsServer2D. If the {@link RID} passed is not one of the objects that can be created by PhysicsServer2D, an error will be printed to the console.
|
|
661
|
+
*/
|
|
662
|
+
static freeRid(rid: RID): void { _C($(), 3583, rid); }
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Activates or deactivates the 2D physics server. If `active` is `false`, then the physics server will not do anything in its physics step.
|
|
666
|
+
*/
|
|
667
|
+
static setActive(active: boolean): void { _C($(), 10426, active); }
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Returns the value of a physics engine state specified by `processInfo`.
|
|
671
|
+
*/
|
|
672
|
+
static getProcessInfo(processInfo: ProcessInfo): number { return _C($(), 6024, processInfo) as number; }
|
|
673
|
+
|
|
674
|
+
static readonly name = _R(574, PhysicsServer2D);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export const SpaceParameter = {
|
|
678
|
+
/**
|
|
679
|
+
* Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contactRecycleRadius}.
|
|
680
|
+
*/
|
|
681
|
+
SPACE_PARAM_CONTACT_RECYCLE_RADIUS: 0,
|
|
682
|
+
/**
|
|
683
|
+
* Constant to set/get the maximum distance a shape can be from another before they are considered separated and the contact is discarded. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contactMaxSeparation}.
|
|
684
|
+
*/
|
|
685
|
+
SPACE_PARAM_CONTACT_MAX_SEPARATION: 1,
|
|
686
|
+
/**
|
|
687
|
+
* Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/contactMaxAllowedPenetration}.
|
|
688
|
+
*/
|
|
689
|
+
SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION: 2,
|
|
690
|
+
/**
|
|
691
|
+
* Constant to set/get the default solver bias for all physics contacts. A solver bias is a factor controlling how much two objects "rebound", after overlapping, to avoid leaving them in that state because of numerical imprecision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/defaultContactBias}.
|
|
692
|
+
*/
|
|
693
|
+
SPACE_PARAM_CONTACT_DEFAULT_BIAS: 3,
|
|
694
|
+
/**
|
|
695
|
+
* Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. The default value of this parameter is {@link ProjectSettings.physics/2d/sleepThresholdLinear}.
|
|
696
|
+
*/
|
|
697
|
+
SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: 4,
|
|
698
|
+
/**
|
|
699
|
+
* Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. The default value of this parameter is {@link ProjectSettings.physics/2d/sleepThresholdAngular}.
|
|
700
|
+
*/
|
|
701
|
+
SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: 5,
|
|
702
|
+
/**
|
|
703
|
+
* Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. The default value of this parameter is {@link ProjectSettings.physics/2d/timeBeforeSleep}.
|
|
704
|
+
*/
|
|
705
|
+
SPACE_PARAM_BODY_TIME_TO_SLEEP: 6,
|
|
706
|
+
/**
|
|
707
|
+
* Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/defaultConstraintBias}.
|
|
708
|
+
*/
|
|
709
|
+
SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS: 7,
|
|
710
|
+
/**
|
|
711
|
+
* Constant to set/get the number of solver iterations for all contacts and constraints. The greater the number of iterations, the more accurate the collisions will be. However, a greater number of iterations requires more CPU power, which can decrease performance. The default value of this parameter is {@link ProjectSettings.physics/2d/solver/solverIterations}.
|
|
712
|
+
*/
|
|
713
|
+
SPACE_PARAM_SOLVER_ITERATIONS: 8,
|
|
714
|
+
} as const;
|
|
715
|
+
|
|
716
|
+
export type SpaceParameter = (typeof SpaceParameter)[keyof typeof SpaceParameter];
|
|
717
|
+
|
|
718
|
+
export const ShapeType = {
|
|
719
|
+
/**
|
|
720
|
+
* This is the constant for creating world boundary shapes. A world boundary shape is an *infinite* line with an origin point, and a normal. Thus, it can be used for front/behind checks.
|
|
721
|
+
*/
|
|
722
|
+
SHAPE_WORLD_BOUNDARY: 0,
|
|
723
|
+
/**
|
|
724
|
+
* This is the constant for creating separation ray shapes. A separation ray is defined by a length and separates itself from what is touching its far endpoint. Useful for character controllers.
|
|
725
|
+
*/
|
|
726
|
+
SHAPE_SEPARATION_RAY: 1,
|
|
727
|
+
/**
|
|
728
|
+
* This is the constant for creating segment shapes. A segment shape is a *finite* line from a point A to a point B. It can be checked for intersections.
|
|
729
|
+
*/
|
|
730
|
+
SHAPE_SEGMENT: 2,
|
|
731
|
+
/**
|
|
732
|
+
* This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks.
|
|
733
|
+
*/
|
|
734
|
+
SHAPE_CIRCLE: 3,
|
|
735
|
+
/**
|
|
736
|
+
* This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks.
|
|
737
|
+
*/
|
|
738
|
+
SHAPE_RECTANGLE: 4,
|
|
739
|
+
/**
|
|
740
|
+
* This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks.
|
|
741
|
+
*/
|
|
742
|
+
SHAPE_CAPSULE: 5,
|
|
743
|
+
/**
|
|
744
|
+
* This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks.
|
|
745
|
+
*/
|
|
746
|
+
SHAPE_CONVEX_POLYGON: 6,
|
|
747
|
+
/**
|
|
748
|
+
* This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks.
|
|
749
|
+
*/
|
|
750
|
+
SHAPE_CONCAVE_POLYGON: 7,
|
|
751
|
+
/**
|
|
752
|
+
* This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|
|
753
|
+
*/
|
|
754
|
+
SHAPE_CUSTOM: 8,
|
|
755
|
+
} as const;
|
|
756
|
+
|
|
757
|
+
export type ShapeType = (typeof ShapeType)[keyof typeof ShapeType];
|
|
758
|
+
|
|
759
|
+
export const AreaParameter = {
|
|
760
|
+
/**
|
|
761
|
+
* Constant to set/get gravity override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
762
|
+
*/
|
|
763
|
+
AREA_PARAM_GRAVITY_OVERRIDE_MODE: 0,
|
|
764
|
+
/**
|
|
765
|
+
* Constant to set/get gravity strength in an area. The default value of this parameter is `9.80665`.
|
|
766
|
+
*/
|
|
767
|
+
AREA_PARAM_GRAVITY: 1,
|
|
768
|
+
/**
|
|
769
|
+
* Constant to set/get gravity vector/center in an area. The default value of this parameter is `Vector2(0, -1)`.
|
|
770
|
+
*/
|
|
771
|
+
AREA_PARAM_GRAVITY_VECTOR: 2,
|
|
772
|
+
/**
|
|
773
|
+
* Constant to set/get whether the gravity vector of an area is a direction, or a center point. The default value of this parameter is `false`.
|
|
774
|
+
*/
|
|
775
|
+
AREA_PARAM_GRAVITY_IS_POINT: 3,
|
|
776
|
+
/**
|
|
777
|
+
* Constant to set/get the distance at which the gravity strength is equal to the gravity controlled by {@link AREA_PARAM_GRAVITY}. For example, on a planet 100 pixels in radius with a surface gravity of 4.0 px/s², set the gravity to 4.0 and the unit distance to 100.0. The gravity will have falloff according to the inverse square law, so in the example, at 200 pixels from the center the gravity will be 1.0 px/s² (twice the distance, 1/4th the gravity), at 50 pixels it will be 16.0 px/s² (half the distance, 4x the gravity), and so on.
|
|
778
|
+
* The above is true only when the unit distance is a positive number. When the unit distance is set to 0.0, the gravity will be constant regardless of distance. The default value of this parameter is `0.0`.
|
|
779
|
+
*/
|
|
780
|
+
AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE: 4,
|
|
781
|
+
/**
|
|
782
|
+
* Constant to set/get linear damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
783
|
+
*/
|
|
784
|
+
AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE: 5,
|
|
785
|
+
/**
|
|
786
|
+
* Constant to set/get the linear damping factor of an area. The default value of this parameter is `0.1`.
|
|
787
|
+
*/
|
|
788
|
+
AREA_PARAM_LINEAR_DAMP: 6,
|
|
789
|
+
/**
|
|
790
|
+
* Constant to set/get angular damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values. The default value of this parameter is {@link AREA_SPACE_OVERRIDE_DISABLED}.
|
|
791
|
+
*/
|
|
792
|
+
AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE: 7,
|
|
793
|
+
/**
|
|
794
|
+
* Constant to set/get the angular damping factor of an area. The default value of this parameter is `1.0`.
|
|
795
|
+
*/
|
|
796
|
+
AREA_PARAM_ANGULAR_DAMP: 8,
|
|
797
|
+
/**
|
|
798
|
+
* Constant to set/get the priority (order of processing) of an area. The default value of this parameter is `0`.
|
|
799
|
+
*/
|
|
800
|
+
AREA_PARAM_PRIORITY: 9,
|
|
801
|
+
} as const;
|
|
802
|
+
|
|
803
|
+
export type AreaParameter = (typeof AreaParameter)[keyof typeof AreaParameter];
|
|
804
|
+
|
|
805
|
+
export const AreaSpaceOverrideMode = {
|
|
806
|
+
/**
|
|
807
|
+
* This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
|
808
|
+
*/
|
|
809
|
+
AREA_SPACE_OVERRIDE_DISABLED: 0,
|
|
810
|
+
/**
|
|
811
|
+
* This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
|
812
|
+
*/
|
|
813
|
+
AREA_SPACE_OVERRIDE_COMBINE: 1,
|
|
814
|
+
/**
|
|
815
|
+
* This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
|
816
|
+
*/
|
|
817
|
+
AREA_SPACE_OVERRIDE_COMBINE_REPLACE: 2,
|
|
818
|
+
/**
|
|
819
|
+
* This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
820
|
+
*/
|
|
821
|
+
AREA_SPACE_OVERRIDE_REPLACE: 3,
|
|
822
|
+
/**
|
|
823
|
+
* This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
824
|
+
*/
|
|
825
|
+
AREA_SPACE_OVERRIDE_REPLACE_COMBINE: 4,
|
|
826
|
+
} as const;
|
|
827
|
+
|
|
828
|
+
export type AreaSpaceOverrideMode = (typeof AreaSpaceOverrideMode)[keyof typeof AreaSpaceOverrideMode];
|
|
829
|
+
|
|
830
|
+
export const BodyMode = {
|
|
831
|
+
/**
|
|
832
|
+
* Constant for static bodies. In this mode, a body can be only moved by user code and doesn't collide with other bodies along its path when moved.
|
|
833
|
+
*/
|
|
834
|
+
BODY_MODE_STATIC: 0,
|
|
835
|
+
/**
|
|
836
|
+
* Constant for kinematic bodies. In this mode, a body can be only moved by user code and collides with other bodies along its path.
|
|
837
|
+
*/
|
|
838
|
+
BODY_MODE_KINEMATIC: 1,
|
|
839
|
+
/**
|
|
840
|
+
* Constant for rigid bodies. In this mode, a body can be pushed by other bodies and has forces applied.
|
|
841
|
+
*/
|
|
842
|
+
BODY_MODE_RIGID: 2,
|
|
843
|
+
/**
|
|
844
|
+
* Constant for linear rigid bodies. In this mode, a body can not rotate, and only its linear velocity is affected by external forces.
|
|
845
|
+
*/
|
|
846
|
+
BODY_MODE_RIGID_LINEAR: 3,
|
|
847
|
+
} as const;
|
|
848
|
+
|
|
849
|
+
export type BodyMode = (typeof BodyMode)[keyof typeof BodyMode];
|
|
850
|
+
|
|
851
|
+
export const BodyParameter = {
|
|
852
|
+
/**
|
|
853
|
+
* Constant to set/get a body's bounce factor. The default value of this parameter is `0.0`.
|
|
854
|
+
*/
|
|
855
|
+
BODY_PARAM_BOUNCE: 0,
|
|
856
|
+
/**
|
|
857
|
+
* Constant to set/get a body's friction. The default value of this parameter is `1.0`.
|
|
858
|
+
*/
|
|
859
|
+
BODY_PARAM_FRICTION: 1,
|
|
860
|
+
/**
|
|
861
|
+
* Constant to set/get a body's mass. The default value of this parameter is `1.0`. If the body's mode is set to {@link BODY_MODE_RIGID}, then setting this parameter will have the following additional effects:
|
|
862
|
+
* - If the parameter {@link BODY_PARAM_CENTER_OF_MASS} has never been set explicitly, then the value of that parameter will be recalculated based on the body's shapes.
|
|
863
|
+
* - If the parameter {@link BODY_PARAM_INERTIA} is set to a value `<= 0.0`, then the value of that parameter will be recalculated based on the body's shapes, mass, and center of mass.
|
|
864
|
+
*/
|
|
865
|
+
BODY_PARAM_MASS: 2,
|
|
866
|
+
/**
|
|
867
|
+
* Constant to set/get a body's inertia. The default value of this parameter is `0.0`. If the body's inertia is set to a value `<= 0.0`, then the inertia will be recalculated based on the body's shapes, mass, and center of mass.
|
|
868
|
+
*/
|
|
869
|
+
BODY_PARAM_INERTIA: 3,
|
|
870
|
+
/**
|
|
871
|
+
* Constant to set/get a body's center of mass position in the body's local coordinate system. The default value of this parameter is `Vector2(0, 0)`. If this parameter is never set explicitly, then it is recalculated based on the body's shapes when setting the parameter {@link BODY_PARAM_MASS} or when calling {@link bodySetSpace}.
|
|
872
|
+
*/
|
|
873
|
+
BODY_PARAM_CENTER_OF_MASS: 4,
|
|
874
|
+
/**
|
|
875
|
+
* Constant to set/get a body's gravity multiplier. The default value of this parameter is `1.0`.
|
|
876
|
+
*/
|
|
877
|
+
BODY_PARAM_GRAVITY_SCALE: 5,
|
|
878
|
+
/**
|
|
879
|
+
* Constant to set/get a body's linear damping mode. See {@link BodyDampMode} for possible values. The default value of this parameter is {@link BODY_DAMP_MODE_COMBINE}.
|
|
880
|
+
*/
|
|
881
|
+
BODY_PARAM_LINEAR_DAMP_MODE: 6,
|
|
882
|
+
/**
|
|
883
|
+
* Constant to set/get a body's angular damping mode. See {@link BodyDampMode} for possible values. The default value of this parameter is {@link BODY_DAMP_MODE_COMBINE}.
|
|
884
|
+
*/
|
|
885
|
+
BODY_PARAM_ANGULAR_DAMP_MODE: 7,
|
|
886
|
+
/**
|
|
887
|
+
* Constant to set/get a body's linear damping factor. The default value of this parameter is `0.0`.
|
|
888
|
+
*/
|
|
889
|
+
BODY_PARAM_LINEAR_DAMP: 8,
|
|
890
|
+
/**
|
|
891
|
+
* Constant to set/get a body's angular damping factor. The default value of this parameter is `0.0`.
|
|
892
|
+
*/
|
|
893
|
+
BODY_PARAM_ANGULAR_DAMP: 9,
|
|
894
|
+
/**
|
|
895
|
+
* Represents the size of the {@link BodyParameter} enum.
|
|
896
|
+
*/
|
|
897
|
+
BODY_PARAM_MAX: 10,
|
|
898
|
+
} as const;
|
|
899
|
+
|
|
900
|
+
export type BodyParameter = (typeof BodyParameter)[keyof typeof BodyParameter];
|
|
901
|
+
|
|
902
|
+
export const BodyDampMode = {
|
|
903
|
+
/**
|
|
904
|
+
* The body's damping value is added to any value set in areas or the default value.
|
|
905
|
+
*/
|
|
906
|
+
BODY_DAMP_MODE_COMBINE: 0,
|
|
907
|
+
/**
|
|
908
|
+
* The body's damping value replaces any value set in areas or the default value.
|
|
909
|
+
*/
|
|
910
|
+
BODY_DAMP_MODE_REPLACE: 1,
|
|
911
|
+
} as const;
|
|
912
|
+
|
|
913
|
+
export type BodyDampMode = (typeof BodyDampMode)[keyof typeof BodyDampMode];
|
|
914
|
+
|
|
915
|
+
export const BodyState = {
|
|
916
|
+
/**
|
|
917
|
+
* Constant to set/get the current transform matrix of the body.
|
|
918
|
+
*/
|
|
919
|
+
BODY_STATE_TRANSFORM: 0,
|
|
920
|
+
/**
|
|
921
|
+
* Constant to set/get the current linear velocity of the body.
|
|
922
|
+
*/
|
|
923
|
+
BODY_STATE_LINEAR_VELOCITY: 1,
|
|
924
|
+
/**
|
|
925
|
+
* Constant to set/get the current angular velocity of the body.
|
|
926
|
+
*/
|
|
927
|
+
BODY_STATE_ANGULAR_VELOCITY: 2,
|
|
928
|
+
/**
|
|
929
|
+
* Constant to sleep/wake up a body, or to get whether it is sleeping.
|
|
930
|
+
*/
|
|
931
|
+
BODY_STATE_SLEEPING: 3,
|
|
932
|
+
/**
|
|
933
|
+
* Constant to set/get whether the body can sleep.
|
|
934
|
+
*/
|
|
935
|
+
BODY_STATE_CAN_SLEEP: 4,
|
|
936
|
+
} as const;
|
|
937
|
+
|
|
938
|
+
export type BodyState = (typeof BodyState)[keyof typeof BodyState];
|
|
939
|
+
|
|
940
|
+
export const JointType = {
|
|
941
|
+
/**
|
|
942
|
+
* Constant to create pin joints.
|
|
943
|
+
*/
|
|
944
|
+
JOINT_TYPE_PIN: 0,
|
|
945
|
+
/**
|
|
946
|
+
* Constant to create groove joints.
|
|
947
|
+
*/
|
|
948
|
+
JOINT_TYPE_GROOVE: 1,
|
|
949
|
+
/**
|
|
950
|
+
* Constant to create damped spring joints.
|
|
951
|
+
*/
|
|
952
|
+
JOINT_TYPE_DAMPED_SPRING: 2,
|
|
953
|
+
/**
|
|
954
|
+
* Represents the size of the {@link JointType} enum.
|
|
955
|
+
*/
|
|
956
|
+
JOINT_TYPE_MAX: 3,
|
|
957
|
+
} as const;
|
|
958
|
+
|
|
959
|
+
export type JointType = (typeof JointType)[keyof typeof JointType];
|
|
960
|
+
|
|
961
|
+
export const JointParam = {
|
|
962
|
+
/**
|
|
963
|
+
* Constant to set/get how fast the joint pulls the bodies back to satisfy the joint constraint. The lower the value, the more the two bodies can pull on the joint. The default value of this parameter is `0.0`.
|
|
964
|
+
* **Note:** In Godot Physics, this parameter is only used for pin joints and groove joints.
|
|
965
|
+
*/
|
|
966
|
+
JOINT_PARAM_BIAS: 0,
|
|
967
|
+
/**
|
|
968
|
+
* Constant to set/get the maximum speed with which the joint can apply corrections. The default value of this parameter is `3.40282e+38`.
|
|
969
|
+
* **Note:** In Godot Physics, this parameter is only used for groove joints.
|
|
970
|
+
*/
|
|
971
|
+
JOINT_PARAM_MAX_BIAS: 1,
|
|
972
|
+
/**
|
|
973
|
+
* Constant to set/get the maximum force that the joint can use to act on the two bodies. The default value of this parameter is `3.40282e+38`.
|
|
974
|
+
* **Note:** In Godot Physics, this parameter is only used for groove joints.
|
|
975
|
+
*/
|
|
976
|
+
JOINT_PARAM_MAX_FORCE: 2,
|
|
977
|
+
} as const;
|
|
978
|
+
|
|
979
|
+
export type JointParam = (typeof JointParam)[keyof typeof JointParam];
|
|
980
|
+
|
|
981
|
+
export const PinJointParam = {
|
|
982
|
+
/**
|
|
983
|
+
* Constant to set/get a how much the bond of the pin joint can flex. The default value of this parameter is `0.0`.
|
|
984
|
+
*/
|
|
985
|
+
PIN_JOINT_SOFTNESS: 0,
|
|
986
|
+
/**
|
|
987
|
+
* The maximum rotation around the pin.
|
|
988
|
+
*/
|
|
989
|
+
PIN_JOINT_LIMIT_UPPER: 1,
|
|
990
|
+
/**
|
|
991
|
+
* The minimum rotation around the pin.
|
|
992
|
+
*/
|
|
993
|
+
PIN_JOINT_LIMIT_LOWER: 2,
|
|
994
|
+
/**
|
|
995
|
+
* Target speed for the motor. In radians per second.
|
|
996
|
+
*/
|
|
997
|
+
PIN_JOINT_MOTOR_TARGET_VELOCITY: 3,
|
|
998
|
+
} as const;
|
|
999
|
+
|
|
1000
|
+
export type PinJointParam = (typeof PinJointParam)[keyof typeof PinJointParam];
|
|
1001
|
+
|
|
1002
|
+
export const PinJointFlag = {
|
|
1003
|
+
/**
|
|
1004
|
+
* If `true`, the pin has a maximum and a minimum rotation.
|
|
1005
|
+
*/
|
|
1006
|
+
PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED: 0,
|
|
1007
|
+
/**
|
|
1008
|
+
* If `true`, a motor turns the pin.
|
|
1009
|
+
*/
|
|
1010
|
+
PIN_JOINT_FLAG_MOTOR_ENABLED: 1,
|
|
1011
|
+
} as const;
|
|
1012
|
+
|
|
1013
|
+
export type PinJointFlag = (typeof PinJointFlag)[keyof typeof PinJointFlag];
|
|
1014
|
+
|
|
1015
|
+
export const DampedSpringParam = {
|
|
1016
|
+
/**
|
|
1017
|
+
* Sets the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. The default value of this parameter is the distance between the joint's anchor points.
|
|
1018
|
+
*/
|
|
1019
|
+
DAMPED_SPRING_REST_LENGTH: 0,
|
|
1020
|
+
/**
|
|
1021
|
+
* Sets the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. The default value of this parameter is `20.0`.
|
|
1022
|
+
*/
|
|
1023
|
+
DAMPED_SPRING_STIFFNESS: 1,
|
|
1024
|
+
/**
|
|
1025
|
+
* Sets the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). The default value of this parameter is `1.5`.
|
|
1026
|
+
*/
|
|
1027
|
+
DAMPED_SPRING_DAMPING: 2,
|
|
1028
|
+
} as const;
|
|
1029
|
+
|
|
1030
|
+
export type DampedSpringParam = (typeof DampedSpringParam)[keyof typeof DampedSpringParam];
|
|
1031
|
+
|
|
1032
|
+
export const CCDMode = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Disables continuous collision detection. This is the fastest way to detect body collisions, but it can miss small and/or fast-moving objects.
|
|
1035
|
+
*/
|
|
1036
|
+
CCD_MODE_DISABLED: 0,
|
|
1037
|
+
/**
|
|
1038
|
+
* Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise.
|
|
1039
|
+
*/
|
|
1040
|
+
CCD_MODE_CAST_RAY: 1,
|
|
1041
|
+
/**
|
|
1042
|
+
* Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise.
|
|
1043
|
+
*/
|
|
1044
|
+
CCD_MODE_CAST_SHAPE: 2,
|
|
1045
|
+
} as const;
|
|
1046
|
+
|
|
1047
|
+
export type CCDMode = (typeof CCDMode)[keyof typeof CCDMode];
|
|
1048
|
+
|
|
1049
|
+
export const AreaBodyStatus = {
|
|
1050
|
+
/**
|
|
1051
|
+
* The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
|
1052
|
+
*/
|
|
1053
|
+
AREA_BODY_ADDED: 0,
|
|
1054
|
+
/**
|
|
1055
|
+
* The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
|
1056
|
+
*/
|
|
1057
|
+
AREA_BODY_REMOVED: 1,
|
|
1058
|
+
} as const;
|
|
1059
|
+
|
|
1060
|
+
export type AreaBodyStatus = (typeof AreaBodyStatus)[keyof typeof AreaBodyStatus];
|
|
1061
|
+
|
|
1062
|
+
export const ProcessInfo = {
|
|
1063
|
+
/**
|
|
1064
|
+
* Constant to get the number of objects that are not sleeping.
|
|
1065
|
+
*/
|
|
1066
|
+
INFO_ACTIVE_OBJECTS: 0,
|
|
1067
|
+
/**
|
|
1068
|
+
* Constant to get the number of possible collisions.
|
|
1069
|
+
*/
|
|
1070
|
+
INFO_COLLISION_PAIRS: 1,
|
|
1071
|
+
/**
|
|
1072
|
+
* Constant to get the number of space regions where a collision could occur.
|
|
1073
|
+
*/
|
|
1074
|
+
INFO_ISLAND_COUNT: 2,
|
|
1075
|
+
} as const;
|
|
1076
|
+
|
|
1077
|
+
export type ProcessInfo = (typeof ProcessInfo)[keyof typeof ProcessInfo];
|
|
1078
|
+
|