@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,1620 @@
|
|
|
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 { AABB, Transform3D, Vector3 } from '../value-types/index.ts';
|
|
8
|
+
import type { PhysicsDirectBodyState3D } from './PhysicsDirectBodyState3D.ts';
|
|
9
|
+
import type { PhysicsDirectSpaceState3D } from './PhysicsDirectSpaceState3D.ts';
|
|
10
|
+
import type { PhysicsServer3DRenderingServerHandler } from './PhysicsServer3DRenderingServerHandler.ts';
|
|
11
|
+
import type { PhysicsTestMotionParameters3D } from './PhysicsTestMotionParameters3D.ts';
|
|
12
|
+
import type { PhysicsTestMotionResult3D } from './PhysicsTestMotionResult3D.ts';
|
|
13
|
+
|
|
14
|
+
let _$: any;
|
|
15
|
+
const $ = () => _$ ?? (_$ = _C(null, 40, 577));
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* PhysicsServer3D is the server responsible for all 3D physics. It can directly create and manipulate all physics objects:
|
|
19
|
+
* - 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.
|
|
20
|
+
* - A *shape* is a geometric shape such as a sphere, a box, a cylinder, 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.
|
|
21
|
+
* - 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.
|
|
22
|
+
* - 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.
|
|
23
|
+
* - 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.
|
|
24
|
+
* Physics objects in {@link PhysicsServer3D} may be created and manipulated independently; they do not have to be tied to nodes in the scene tree.
|
|
25
|
+
* **Note:** All the 3D 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.
|
|
26
|
+
*/
|
|
27
|
+
export class PhysicsServer3D extends GodotVar {
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Creates a 3D 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.
|
|
31
|
+
*/
|
|
32
|
+
static worldBoundaryShapeCreate(): RID { return _C($(), 14922) as RID; }
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Creates a 3D 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.
|
|
36
|
+
*/
|
|
37
|
+
static separationRayShapeCreate(): RID { return _C($(), 10374) as RID; }
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates a 3D sphere shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the sphere's radius.
|
|
41
|
+
*/
|
|
42
|
+
static sphereShapeCreate(): RID { return _C($(), 13779) as RID; }
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Creates a 3D box shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the box's half-extents.
|
|
46
|
+
*/
|
|
47
|
+
static boxShapeCreate(): RID { return _C($(), 1907) as RID; }
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Creates a 3D 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.
|
|
51
|
+
*/
|
|
52
|
+
static capsuleShapeCreate(): RID { return _C($(), 2134) as RID; }
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates a 3D cylinder shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the cylinder's height and radius.
|
|
56
|
+
*/
|
|
57
|
+
static cylinderShapeCreate(): RID { return _C($(), 2640) as RID; }
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Creates a 3D 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.
|
|
61
|
+
*/
|
|
62
|
+
static convexPolygonShapeCreate(): RID { return _C($(), 2485) as RID; }
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates a 3D concave polygon shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the concave polygon's triangles.
|
|
66
|
+
*/
|
|
67
|
+
static concavePolygonShapeCreate(): RID { return _C($(), 2425) as RID; }
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Creates a 3D heightmap shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the heightmap's data.
|
|
71
|
+
*/
|
|
72
|
+
static heightmapShapeCreate(): RID { return _C($(), 7501) as RID; }
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates a custom shape in the physics server, and returns the {@link RID} that identifies it. Use {@link shapeSetData} to set the shape's data.
|
|
76
|
+
* **Note:** Custom shapes are not supported by the built-in physics servers, so calling this method always produces an error when using Godot Physics or Jolt Physics. Custom physics servers implemented as GDExtensions may support a custom shape.
|
|
77
|
+
*/
|
|
78
|
+
static customShapeCreate(): RID { return _C($(), 2631) as RID; }
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Sets the shape data that configures the shape. The `data` to be passed depends on the shape's type (see {@link shapeGetType}):
|
|
82
|
+
* - {@link SHAPE_WORLD_BOUNDARY}: a {@link Plane},
|
|
83
|
+
* - {@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,
|
|
84
|
+
* - {@link SHAPE_SPHERE}: a {@link float} that is the radius of the sphere,
|
|
85
|
+
* - {@link SHAPE_BOX}: a {@link Vector3} containing the half-extents of the box,
|
|
86
|
+
* - {@link SHAPE_CAPSULE}: a dictionary containing the keys `"height"` and `"radius"` with {@link float} values,
|
|
87
|
+
* - {@link SHAPE_CYLINDER}: a dictionary containing the keys `"height"` and `"radius"` with {@link float} values,
|
|
88
|
+
* - {@link SHAPE_CONVEX_POLYGON}: a {@link PackedVector3Array} of points defining a convex polygon (the shape will be the convex hull of the points),
|
|
89
|
+
* - {@link SHAPE_CONCAVE_POLYGON}: a dictionary containing the key `"faces"` with a {@link PackedVector3Array} value (with a length divisible by 3, so that each 3-tuple of points forms a face) and the key `"backface_collision"` with a {@link bool} value,
|
|
90
|
+
* - {@link SHAPE_HEIGHTMAP}: a dictionary containing the keys `"width"` and `"depth"` with {@link int} values, and the key `"heights"` with a value that is a packed array of {@link float}s of length `width * depth` (that is a {@link PackedFloat32Array}, or a {@link PackedFloat64Array} if Godot was compiled with the `precision=double` option), and optionally the keys `"min_height"` and `"max_height"` with {@link float} values,
|
|
91
|
+
* - {@link SHAPE_SOFT_BODY}: the input `data` is ignored and this method has no effect,
|
|
92
|
+
* - {@link SHAPE_CUSTOM}: the input `data` is interpreted by a custom physics server, if it supports custom shapes.
|
|
93
|
+
*/
|
|
94
|
+
static shapeSetData(shape: RID, data: Variant): void { _C($(), 13476, shape, data); }
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Sets the collision margin for the shape.
|
|
98
|
+
* **Note:** This is not used in Godot Physics.
|
|
99
|
+
*/
|
|
100
|
+
static shapeSetMargin(shape: RID, margin: number): void { _C($(), 13477, shape, margin); }
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns the shape's type.
|
|
104
|
+
*/
|
|
105
|
+
static shapeGetType(shape: RID): ShapeType { return _C($(), 13461, shape) as ShapeType; }
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Returns the shape data that configures the shape, such as the half-extents of a box or the triangles of a concave (trimesh) shape. See {@link shapeSetData} for the precise format of this data in each case.
|
|
109
|
+
*/
|
|
110
|
+
static shapeGetData(shape: RID): Variant { return _C($(), 13459, shape) as Variant; }
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns the collision margin for the shape.
|
|
114
|
+
* **Note:** This is not used in Godot Physics, so will always return `0`.
|
|
115
|
+
*/
|
|
116
|
+
static shapeGetMargin(shape: RID): number { return _C($(), 13460, shape) as number; }
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Creates a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with {@link areaSetSpace}, or to a body with {@link bodySetSpace}.
|
|
120
|
+
*/
|
|
121
|
+
static spaceCreate(): RID { return _C($(), 13747) as RID; }
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Marks a space as active. It will not have an effect, unless it is assigned to an area or body.
|
|
125
|
+
*/
|
|
126
|
+
static spaceSetActive(space: RID, active: boolean): void { _C($(), 13751, space, active); }
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns whether the space is active.
|
|
130
|
+
*/
|
|
131
|
+
static spaceIsActive(space: RID): boolean { return _C($(), 13750, space) as boolean; }
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sets the value for a space parameter. A list of available parameters is on the {@link SpaceParameter} constants.
|
|
135
|
+
*/
|
|
136
|
+
static spaceSetParam(space: RID, param: SpaceParameter, value: number): void { _C($(), 13752, space, param, value); }
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Returns the value of a space parameter.
|
|
140
|
+
*/
|
|
141
|
+
static spaceGetParam(space: RID, param: SpaceParameter): number { return _C($(), 13749, space, param) as number; }
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns the state of a space, a {@link PhysicsDirectSpaceState3D}. This object can be used to make collision/intersection queries.
|
|
145
|
+
*/
|
|
146
|
+
static spaceGetDirectState(space: RID): PhysicsDirectSpaceState3D { return _C($(), 13748, space) as PhysicsDirectSpaceState3D; }
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Creates a 3D area object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and `monitorable` set to `false`.
|
|
150
|
+
* 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}.
|
|
151
|
+
*/
|
|
152
|
+
static areaCreate(): RID { return _C($(), 1556) as RID; }
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Assigns a space to the area.
|
|
156
|
+
*/
|
|
157
|
+
static areaSetSpace(area: RID, space: RID): void { _C($(), 1584, area, space); }
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Returns the space assigned to the area.
|
|
161
|
+
*/
|
|
162
|
+
static areaGetSpace(area: RID): RID { return _C($(), 1567, area) as RID; }
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Adds a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.
|
|
166
|
+
*/
|
|
167
|
+
static areaAddShape(area: RID, shape: RID, transform?: Transform3D /* = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) */, disabled?: boolean /* = false */): void { _C($(), 1551, area, shape, transform, disabled); }
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Substitutes a given area shape by another. The old shape is selected by its index, the new one by its {@link RID}.
|
|
171
|
+
*/
|
|
172
|
+
static areaSetShape(area: RID, shapeIdx: number, shape: RID): void { _C($(), 1581, area, shapeIdx, shape); }
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Sets the transform matrix for an area shape.
|
|
176
|
+
*/
|
|
177
|
+
static areaSetShapeTransform(area: RID, shapeIdx: number, transform: Transform3D): void { _C($(), 1583, area, shapeIdx, transform); }
|
|
178
|
+
|
|
179
|
+
static areaSetShapeDisabled(area: RID, shapeIdx: number, disabled: boolean): void { _C($(), 1582, area, shapeIdx, disabled); }
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Returns the number of shapes assigned to an area.
|
|
183
|
+
*/
|
|
184
|
+
static areaGetShapeCount(area: RID): number { return _C($(), 1565, area) as number; }
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Returns the {@link RID} of the nth shape of an area.
|
|
188
|
+
*/
|
|
189
|
+
static areaGetShape(area: RID, shapeIdx: number): RID { return _C($(), 1564, area, shapeIdx) as RID; }
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns the transform matrix of a shape within an area.
|
|
193
|
+
*/
|
|
194
|
+
static areaGetShapeTransform(area: RID, shapeIdx: number): Transform3D { return _C($(), 1566, area, shapeIdx) as Transform3D; }
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Removes a shape from an area. It does not delete the shape, so it can be reassigned later.
|
|
198
|
+
*/
|
|
199
|
+
static areaRemoveShape(area: RID, shapeIdx: number): void { _C($(), 1573, area, shapeIdx); }
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Removes all shapes from an area. It does not delete the shapes, so they can be reassigned later.
|
|
203
|
+
*/
|
|
204
|
+
static areaClearShapes(area: RID): void { _C($(), 1555, area); }
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Assigns the area to one or many physics layers.
|
|
208
|
+
*/
|
|
209
|
+
static areaSetCollisionLayer(area: RID, layer: number /* uint32 */): void { _C($(), 1575, area, layer); }
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Returns the physics layer or layers an area belongs to.
|
|
213
|
+
*/
|
|
214
|
+
static areaGetCollisionLayer(area: RID): number { return _C($(), 1560, area) as number; }
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Sets which physics layers the area will monitor.
|
|
218
|
+
*/
|
|
219
|
+
static areaSetCollisionMask(area: RID, mask: number /* uint32 */): void { _C($(), 1576, area, mask); }
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Returns the physics layer or layers an area can contact with.
|
|
223
|
+
*/
|
|
224
|
+
static areaGetCollisionMask(area: RID): number { return _C($(), 1561, area) as number; }
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Sets the value for an area parameter. A list of available parameters is on the {@link AreaParameter} constants.
|
|
228
|
+
*/
|
|
229
|
+
static areaSetParam(area: RID, param: AreaParameter, value: Variant): void { _C($(), 1579, area, param, value); }
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Sets the transform matrix for an area.
|
|
233
|
+
*/
|
|
234
|
+
static areaSetTransform(area: RID, transform: Transform3D): void { _C($(), 1585, area, transform); }
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Returns an area parameter value. A list of available parameters is on the {@link AreaParameter} constants.
|
|
238
|
+
*/
|
|
239
|
+
static areaGetParam(area: RID, param: AreaParameter): Variant { return _C($(), 1563, area, param) as Variant; }
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Returns the transform matrix for an area.
|
|
243
|
+
*/
|
|
244
|
+
static areaGetTransform(area: RID): Transform3D { return _C($(), 1568, area) as Transform3D; }
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Assigns the area to a descendant of {@link Object}, so it can exist in the node tree.
|
|
248
|
+
*/
|
|
249
|
+
static areaAttachObjectInstanceId(area: RID, id: number /* uint64 */): void { _C($(), 1553, area, id); }
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Gets the instance ID of the object the area is assigned to.
|
|
253
|
+
*/
|
|
254
|
+
static areaGetObjectInstanceId(area: RID): number { return _C($(), 1562, area) as number; }
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 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:
|
|
258
|
+
* 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,
|
|
259
|
+
* 2. an {@link RID} `body_rid`: the {@link RID} of the body that entered or exited the area,
|
|
260
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the body,
|
|
261
|
+
* 4. an integer `body_shape_idx`: the index of the shape of the body that entered or exited the area,
|
|
262
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the body entered or exited.
|
|
263
|
+
* 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.
|
|
264
|
+
*/
|
|
265
|
+
static areaSetMonitorCallback(area: RID, callback: Callable): void { _C($(), 1577, area, callback); }
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 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:
|
|
269
|
+
* 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,
|
|
270
|
+
* 2. an {@link RID} `area_rid`: the {@link RID} of the other area that entered or exited the area,
|
|
271
|
+
* 3. an integer `instance_id`: the `ObjectID` attached to the other area,
|
|
272
|
+
* 4. an integer `area_shape_idx`: the index of the shape of the other area that entered or exited the area,
|
|
273
|
+
* 5. an integer `self_shape_idx`: the index of the shape of the area where the other area entered or exited.
|
|
274
|
+
* 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.
|
|
275
|
+
*/
|
|
276
|
+
static areaSetAreaMonitorCallback(area: RID, callback: Callable): void { _C($(), 1574, area, callback); }
|
|
277
|
+
|
|
278
|
+
static areaSetMonitorable(area: RID, monitorable: boolean): void { _C($(), 1578, area, monitorable); }
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Sets object pickable with rays.
|
|
282
|
+
*/
|
|
283
|
+
static areaSetRayPickable(area: RID, enable: boolean): void { _C($(), 1580, area, enable); }
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Creates a 3D body object in the physics server, and returns the {@link RID} that identifies it. The default settings for the created area include a collision layer and mask set to `1`, and body mode set to {@link BODY_MODE_RIGID}.
|
|
287
|
+
* 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.
|
|
288
|
+
*/
|
|
289
|
+
static bodyCreate(): RID { return _C($(), 1819) as RID; }
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Assigns a space to the body (see {@link spaceCreate}).
|
|
293
|
+
*/
|
|
294
|
+
static bodySetSpace(body: RID, space: RID): void { _C($(), 1866, body, space); }
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Returns the {@link RID} of the space assigned to a body.
|
|
298
|
+
*/
|
|
299
|
+
static bodyGetSpace(body: RID): RID { return _C($(), 1838, body) as RID; }
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Sets the body mode.
|
|
303
|
+
*/
|
|
304
|
+
static bodySetMode(body: RID, mode: BodyMode): void { _C($(), 1858, body, mode); }
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Returns the body mode.
|
|
308
|
+
*/
|
|
309
|
+
static bodyGetMode(body: RID): BodyMode { return _C($(), 1832, body) as BodyMode; }
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Sets the physics layer or layers a body belongs to.
|
|
313
|
+
*/
|
|
314
|
+
static bodySetCollisionLayer(body: RID, layer: number /* uint32 */): void { _C($(), 1849, body, layer); }
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Returns the physics layer or layers a body belongs to.
|
|
318
|
+
*/
|
|
319
|
+
static bodyGetCollisionLayer(body: RID): number { return _C($(), 1824, body) as number; }
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Sets the physics layer or layers a body can collide with.
|
|
323
|
+
*/
|
|
324
|
+
static bodySetCollisionMask(body: RID, mask: number /* uint32 */): void { _C($(), 1850, body, mask); }
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Returns the physics layer or layers a body can collide with.
|
|
328
|
+
*/
|
|
329
|
+
static bodyGetCollisionMask(body: RID): number { return _C($(), 1825, body) as number; }
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Sets the body's collision priority.
|
|
333
|
+
*/
|
|
334
|
+
static bodySetCollisionPriority(body: RID, priority: number): void { _C($(), 1851, body, priority); }
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Returns the body's collision priority.
|
|
338
|
+
*/
|
|
339
|
+
static bodyGetCollisionPriority(body: RID): number { return _C($(), 1826, body) as number; }
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Adds a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.
|
|
343
|
+
*/
|
|
344
|
+
static bodyAddShape(body: RID, shape: RID, transform?: Transform3D /* = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) */, disabled?: boolean /* = false */): void { _C($(), 1809, body, shape, transform, disabled); }
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Substitutes a given body shape by another. The old shape is selected by its index, the new one by its {@link RID}.
|
|
348
|
+
*/
|
|
349
|
+
static bodySetShape(body: RID, shapeIdx: number, shape: RID): void { _C($(), 1862, body, shapeIdx, shape); }
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Sets the transform matrix for a body shape.
|
|
353
|
+
*/
|
|
354
|
+
static bodySetShapeTransform(body: RID, shapeIdx: number, transform: Transform3D): void { _C($(), 1865, body, shapeIdx, transform); }
|
|
355
|
+
|
|
356
|
+
static bodySetShapeDisabled(body: RID, shapeIdx: number, disabled: boolean): void { _C($(), 1864, body, shapeIdx, disabled); }
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Returns the number of shapes assigned to a body.
|
|
360
|
+
*/
|
|
361
|
+
static bodyGetShapeCount(body: RID): number { return _C($(), 1836, body) as number; }
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Returns the {@link RID} of the nth shape of a body.
|
|
365
|
+
*/
|
|
366
|
+
static bodyGetShape(body: RID, shapeIdx: number): RID { return _C($(), 1835, body, shapeIdx) as RID; }
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Returns the transform matrix of a body shape.
|
|
370
|
+
*/
|
|
371
|
+
static bodyGetShapeTransform(body: RID, shapeIdx: number): Transform3D { return _C($(), 1837, body, shapeIdx) as Transform3D; }
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Removes a shape from a body. The shape is not deleted, so it can be reused afterwards.
|
|
375
|
+
*/
|
|
376
|
+
static bodyRemoveShape(body: RID, shapeIdx: number): void { _C($(), 1845, body, shapeIdx); }
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Removes all shapes from a body.
|
|
380
|
+
*/
|
|
381
|
+
static bodyClearShapes(body: RID): void { _C($(), 1818, body); }
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Assigns the area to a descendant of {@link Object}, so it can exist in the node tree.
|
|
385
|
+
*/
|
|
386
|
+
static bodyAttachObjectInstanceId(body: RID, id: number /* uint64 */): void { _C($(), 1817, body, id); }
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Gets the instance ID of the object the area is assigned to.
|
|
390
|
+
*/
|
|
391
|
+
static bodyGetObjectInstanceId(body: RID): number { return _C($(), 1833, body) as number; }
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the continuous collision detection mode is enabled.
|
|
395
|
+
* Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.
|
|
396
|
+
*/
|
|
397
|
+
static bodySetEnableContinuousCollisionDetection(body: RID, enable: boolean): void { _C($(), 1855, body, enable); }
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* If `true`, the continuous collision detection mode is enabled.
|
|
401
|
+
*/
|
|
402
|
+
static bodyIsContinuousCollisionDetectionEnabled(body: RID): boolean { return _C($(), 1841, body) as boolean; }
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Sets a body parameter. A list of available parameters is on the {@link BodyParameter} constants.
|
|
406
|
+
*/
|
|
407
|
+
static bodySetParam(body: RID, param: BodyParameter, value: Variant): void { _C($(), 1860, body, param, value); }
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Returns the value of a body parameter. A list of available parameters is on the {@link BodyParameter} constants.
|
|
411
|
+
*/
|
|
412
|
+
static bodyGetParam(body: RID, param: BodyParameter): Variant { return _C($(), 1834, body, param) as Variant; }
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Restores the default inertia and center of mass based on shapes to cancel any custom values previously set using {@link bodySetParam}.
|
|
416
|
+
*/
|
|
417
|
+
static bodyResetMassProperties(body: RID): void { _C($(), 1846, body); }
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Sets a body state.
|
|
421
|
+
*/
|
|
422
|
+
static bodySetState(body: RID, state: BodyState, value: Variant): void { _C($(), 1867, body, state, value); }
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Returns a body state.
|
|
426
|
+
*/
|
|
427
|
+
static bodyGetState(body: RID, state: BodyState): Variant { return _C($(), 1839, body, state) as Variant; }
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Applies a directional impulse without affecting rotation.
|
|
431
|
+
* 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).
|
|
432
|
+
* This is equivalent to using {@link bodyApplyImpulse} at the body's center of mass.
|
|
433
|
+
*/
|
|
434
|
+
static bodyApplyCentralImpulse(body: RID, impulse: Vector3): void { _C($(), 1811, body, impulse); }
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Applies a positioned impulse to the body.
|
|
438
|
+
* 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).
|
|
439
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
440
|
+
*/
|
|
441
|
+
static bodyApplyImpulse(body: RID, impulse: Vector3, position?: Vector3 /* = Vector3(0, 0, 0) */): void { _C($(), 1813, body, impulse, position); }
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Applies a rotational impulse to the body without affecting the position.
|
|
445
|
+
* 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).
|
|
446
|
+
*/
|
|
447
|
+
static bodyApplyTorqueImpulse(body: RID, impulse: Vector3): void { _C($(), 1815, body, impulse); }
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Applies a directional force without affecting rotation. A force is time dependent and meant to be applied every physics update.
|
|
451
|
+
* This is equivalent to using {@link bodyApplyForce} at the body's center of mass.
|
|
452
|
+
*/
|
|
453
|
+
static bodyApplyCentralForce(body: RID, force: Vector3): void { _C($(), 1810, body, force); }
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Applies a positioned force to the body. A force is time dependent and meant to be applied every physics update.
|
|
457
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
458
|
+
*/
|
|
459
|
+
static bodyApplyForce(body: RID, force: Vector3, position?: Vector3 /* = Vector3(0, 0, 0) */): void { _C($(), 1812, body, force, position); }
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Applies a rotational force without affecting position. A force is time dependent and meant to be applied every physics update.
|
|
463
|
+
*/
|
|
464
|
+
static bodyApplyTorque(body: RID, torque: Vector3): void { _C($(), 1814, body, torque); }
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Adds a constant directional force without affecting rotation that keeps being applied over time until cleared with `body_set_constant_force(body, Vector3(0, 0, 0))`.
|
|
468
|
+
* This is equivalent to using {@link bodyAddConstantForce} at the body's center of mass.
|
|
469
|
+
*/
|
|
470
|
+
static bodyAddConstantCentralForce(body: RID, force: Vector3): void { _C($(), 1806, body, force); }
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Adds a constant positioned force to the body that keeps being applied over time until cleared with `body_set_constant_force(body, Vector3(0, 0, 0))`.
|
|
474
|
+
* `position` is the offset from the body origin in global coordinates.
|
|
475
|
+
*/
|
|
476
|
+
static bodyAddConstantForce(body: RID, force: Vector3, position?: Vector3 /* = Vector3(0, 0, 0) */): void { _C($(), 1807, body, force, position); }
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Adds a constant rotational force without affecting position that keeps being applied over time until cleared with `body_set_constant_torque(body, Vector3(0, 0, 0))`.
|
|
480
|
+
*/
|
|
481
|
+
static bodyAddConstantTorque(body: RID, torque: Vector3): void { _C($(), 1808, body, torque); }
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Sets the body's total constant positional forces applied during each physics update.
|
|
485
|
+
* See {@link bodyAddConstantForce} and {@link bodyAddConstantCentralForce}.
|
|
486
|
+
*/
|
|
487
|
+
static bodySetConstantForce(body: RID, force: Vector3): void { _C($(), 1852, body, force); }
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Returns the body's total constant positional forces applied during each physics update.
|
|
491
|
+
* See {@link bodyAddConstantForce} and {@link bodyAddConstantCentralForce}.
|
|
492
|
+
*/
|
|
493
|
+
static bodyGetConstantForce(body: RID): Vector3 { return _C($(), 1827, body) as Vector3; }
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Sets the body's total constant rotational forces applied during each physics update.
|
|
497
|
+
* See {@link bodyAddConstantTorque}.
|
|
498
|
+
*/
|
|
499
|
+
static bodySetConstantTorque(body: RID, torque: Vector3): void { _C($(), 1853, body, torque); }
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Returns the body's total constant rotational forces applied during each physics update.
|
|
503
|
+
* See {@link bodyAddConstantTorque}.
|
|
504
|
+
*/
|
|
505
|
+
static bodyGetConstantTorque(body: RID): Vector3 { return _C($(), 1828, body) as Vector3; }
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior.
|
|
509
|
+
*/
|
|
510
|
+
static bodySetAxisVelocity(body: RID, axisVelocity: Vector3): void { _C($(), 1848, body, axisVelocity); }
|
|
511
|
+
|
|
512
|
+
static bodySetAxisLock(body: RID, axis: BodyAxis, lock: boolean): void { _C($(), 1847, body, axis, lock); }
|
|
513
|
+
|
|
514
|
+
static bodyIsAxisLocked(body: RID, axis: BodyAxis): boolean { return _C($(), 1840, body, axis) as boolean; }
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Adds a body to the list of bodies exempt from collisions.
|
|
518
|
+
*/
|
|
519
|
+
static bodyAddCollisionException(body: RID, exceptedBody: RID): void { _C($(), 1805, body, exceptedBody); }
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Removes a body from the list of bodies exempt from collisions.
|
|
523
|
+
* Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.
|
|
524
|
+
*/
|
|
525
|
+
static bodyRemoveCollisionException(body: RID, exceptedBody: RID): void { _C($(), 1844, body, exceptedBody); }
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Sets the maximum contacts to report. Bodies can keep a log of the contacts with other bodies. This is enabled by setting the maximum number of contacts reported to a number greater than 0.
|
|
529
|
+
*/
|
|
530
|
+
static bodySetMaxContactsReported(body: RID, amount: number): void { _C($(), 1857, body, amount); }
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Returns the maximum contacts that can be reported. See {@link bodySetMaxContactsReported}.
|
|
534
|
+
*/
|
|
535
|
+
static bodyGetMaxContactsReported(body: RID): number { return _C($(), 1831, body) as number; }
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* 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.
|
|
539
|
+
* This method is called when the property {@link RigidBody3D.customIntegrator} is set.
|
|
540
|
+
*/
|
|
541
|
+
static bodySetOmitForceIntegration(body: RID, enable: boolean): void { _C($(), 1859, body, enable); }
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Returns `true` if the body is omitting the standard force integration. See {@link bodySetOmitForceIntegration}.
|
|
545
|
+
*/
|
|
546
|
+
static bodyIsOmittingForceIntegration(body: RID): boolean { return _C($(), 1842, body) as boolean; }
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* 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.
|
|
550
|
+
* 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.
|
|
551
|
+
* The function `callable` must take the following parameters:
|
|
552
|
+
* 1. `state`: a {@link PhysicsDirectBodyState3D}, used to retrieve the body's state.
|
|
553
|
+
*/
|
|
554
|
+
static bodySetStateSyncCallback(body: RID, callable: Callable): void { _C($(), 1868, body, callable); }
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* 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.
|
|
558
|
+
* 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.
|
|
559
|
+
* If `userdata` is not `null`, the function `callable` must take the following two parameters:
|
|
560
|
+
* 1. `state`: a {@link PhysicsDirectBodyState3D}, used to retrieve and modify the body's state,
|
|
561
|
+
* 2. {@link code skip-lint}userdata: a {@link Variant}; its value will be the `userdata` passed into this method.
|
|
562
|
+
* If `userdata` is `null`, then `callable` must take only the `state` parameter.
|
|
563
|
+
*/
|
|
564
|
+
static bodySetForceIntegrationCallback(body: RID, callable: Callable, userdata?: Variant /* = null */): void { _C($(), 1856, body, callable, userdata); }
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Sets the body pickable with rays if `enable` is set.
|
|
568
|
+
*/
|
|
569
|
+
static bodySetRayPickable(body: RID, enable: boolean): void { _C($(), 1861, body, enable); }
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Returns `true` if a collision would result from moving along a motion vector from a given point in space. {@link PhysicsTestMotionParameters3D} is passed to set motion parameters. {@link PhysicsTestMotionResult3D} can be passed to return additional information.
|
|
573
|
+
*/
|
|
574
|
+
static bodyTestMotion(body: RID, parameters: PhysicsTestMotionParameters3D, result?: PhysicsTestMotionResult3D /* = null */): boolean { return _C($(), 1872, body, parameters, result) as boolean; }
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Returns the {@link PhysicsDirectBodyState3D} of the body. Returns `null` if the body is destroyed or removed from the physics space.
|
|
578
|
+
*/
|
|
579
|
+
static bodyGetDirectState(body: RID): PhysicsDirectBodyState3D | null { return _C($(), 1830, body) as PhysicsDirectBodyState3D | null; }
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Creates a new soft body and returns its internal {@link RID}.
|
|
583
|
+
*/
|
|
584
|
+
static softBodyCreate(): RID { return _C($(), 13685) as RID; }
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Requests that the physics server updates the rendering server with the latest positions of the given soft body's points through the `renderingServerHandler` interface.
|
|
588
|
+
*/
|
|
589
|
+
static softBodyUpdateRenderingServer(body: RID, renderingServerHandler: PhysicsServer3DRenderingServerHandler): void { _C($(), 13718, body, renderingServerHandler); }
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Assigns a space to the given soft body (see {@link spaceCreate}).
|
|
593
|
+
*/
|
|
594
|
+
static softBodySetSpace(body: RID, space: RID): void { _C($(), 13714, body, space); }
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Returns the {@link RID} of the space assigned to the given soft body.
|
|
598
|
+
*/
|
|
599
|
+
static softBodyGetSpace(body: RID): RID { return _C($(), 13696, body) as RID; }
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Sets the mesh of the given soft body.
|
|
603
|
+
*/
|
|
604
|
+
static softBodySetMesh(body: RID, mesh: RID): void { _C($(), 13709, body, mesh); }
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Returns the bounds of the given soft body in global coordinates.
|
|
608
|
+
*/
|
|
609
|
+
static softBodyGetBounds(body: RID): AABB { return _C($(), 13686, body) as AABB; }
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Sets the physics layer or layers the given soft body belongs to.
|
|
613
|
+
*/
|
|
614
|
+
static softBodySetCollisionLayer(body: RID, layer: number /* uint32 */): void { _C($(), 13704, body, layer); }
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Returns the physics layer or layers that the given soft body belongs to.
|
|
618
|
+
*/
|
|
619
|
+
static softBodyGetCollisionLayer(body: RID): number { return _C($(), 13687, body) as number; }
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Sets the physics layer or layers the given soft body can collide with.
|
|
623
|
+
*/
|
|
624
|
+
static softBodySetCollisionMask(body: RID, mask: number /* uint32 */): void { _C($(), 13705, body, mask); }
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Returns the physics layer or layers that the given soft body can collide with.
|
|
628
|
+
*/
|
|
629
|
+
static softBodyGetCollisionMask(body: RID): number { return _C($(), 13688, body) as number; }
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Adds the given body to the list of bodies exempt from collisions.
|
|
633
|
+
*/
|
|
634
|
+
static softBodyAddCollisionException(body: RID, bodyB: RID): void { _C($(), 13680, body, bodyB); }
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Removes the given body from the list of bodies exempt from collisions.
|
|
638
|
+
*/
|
|
639
|
+
static softBodyRemoveCollisionException(body: RID, bodyB: RID): void { _C($(), 13703, body, bodyB); }
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Sets the given body state for the given body.
|
|
643
|
+
* **Note:** Godot's default physics implementation does not support {@link BODY_STATE_LINEAR_VELOCITY}, {@link BODY_STATE_ANGULAR_VELOCITY}, {@link BODY_STATE_SLEEPING}, or {@link BODY_STATE_CAN_SLEEP}.
|
|
644
|
+
*/
|
|
645
|
+
static softBodySetState(body: RID, state: BodyState, variant: Variant): void { _C($(), 13715, body, state, variant); }
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Returns the given soft body state.
|
|
649
|
+
* **Note:** Godot's default physics implementation does not support {@link BODY_STATE_LINEAR_VELOCITY}, {@link BODY_STATE_ANGULAR_VELOCITY}, {@link BODY_STATE_SLEEPING}, or {@link BODY_STATE_CAN_SLEEP}.
|
|
650
|
+
*/
|
|
651
|
+
static softBodyGetState(body: RID, state: BodyState): Variant { return _C($(), 13697, body, state) as Variant; }
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Sets the global transform of the given soft body.
|
|
655
|
+
*/
|
|
656
|
+
static softBodySetTransform(body: RID, transform: Transform3D): void { _C($(), 13717, body, transform); }
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Sets whether the given soft body will be pickable when using object picking.
|
|
660
|
+
*/
|
|
661
|
+
static softBodySetRayPickable(body: RID, enable: boolean): void { _C($(), 13711, body, enable); }
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Sets the simulation precision of the given soft body. Increasing this value will improve the resulting simulation, but can affect performance. Use with care.
|
|
665
|
+
*/
|
|
666
|
+
static softBodySetSimulationPrecision(body: RID, simulationPrecision: number): void { _C($(), 13713, body, simulationPrecision); }
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Returns the simulation precision of the given soft body.
|
|
670
|
+
*/
|
|
671
|
+
static softBodyGetSimulationPrecision(body: RID): number { return _C($(), 13695, body) as number; }
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Sets the total mass for the given soft body.
|
|
675
|
+
*/
|
|
676
|
+
static softBodySetTotalMass(body: RID, totalMass: number): void { _C($(), 13716, body, totalMass); }
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Returns the total mass assigned to the given soft body.
|
|
680
|
+
*/
|
|
681
|
+
static softBodyGetTotalMass(body: RID): number { return _C($(), 13698, body) as number; }
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Sets the linear stiffness of the given soft body. Higher values will result in a stiffer body, while lower values will increase the body's ability to bend. The value can be between `0.0` and `1.0` (inclusive).
|
|
685
|
+
*/
|
|
686
|
+
static softBodySetLinearStiffness(body: RID, stiffness: number): void { _C($(), 13708, body, stiffness); }
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Returns the linear stiffness of the given soft body.
|
|
690
|
+
*/
|
|
691
|
+
static softBodyGetLinearStiffness(body: RID): number { return _C($(), 13691, body) as number; }
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Sets the shrinking factor of the given soft body.
|
|
695
|
+
*/
|
|
696
|
+
static softBodySetShrinkingFactor(body: RID, shrinkingFactor: number): void { _C($(), 13712, body, shrinkingFactor); }
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Returns the shrinking factor of the given soft body.
|
|
700
|
+
*/
|
|
701
|
+
static softBodyGetShrinkingFactor(body: RID): number { return _C($(), 13694, body) as number; }
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Sets the pressure coefficient of the given soft body. Simulates pressure build-up from inside this body. Higher values increase the strength of this effect.
|
|
705
|
+
*/
|
|
706
|
+
static softBodySetPressureCoefficient(body: RID, pressureCoefficient: number): void { _C($(), 13710, body, pressureCoefficient); }
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Returns the pressure coefficient of the given soft body.
|
|
710
|
+
*/
|
|
711
|
+
static softBodyGetPressureCoefficient(body: RID): number { return _C($(), 13693, body) as number; }
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Sets the damping coefficient of the given soft body. Higher values will slow down the body more noticeably when forces are applied.
|
|
715
|
+
*/
|
|
716
|
+
static softBodySetDampingCoefficient(body: RID, dampingCoefficient: number): void { _C($(), 13706, body, dampingCoefficient); }
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Returns the damping coefficient of the given soft body.
|
|
720
|
+
*/
|
|
721
|
+
static softBodyGetDampingCoefficient(body: RID): number { return _C($(), 13689, body) as number; }
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Sets the drag coefficient of the given soft body. Higher values increase this body's air resistance.
|
|
725
|
+
* **Note:** This value is currently unused by Godot's default physics implementation.
|
|
726
|
+
*/
|
|
727
|
+
static softBodySetDragCoefficient(body: RID, dragCoefficient: number): void { _C($(), 13707, body, dragCoefficient); }
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Returns the drag coefficient of the given soft body.
|
|
731
|
+
*/
|
|
732
|
+
static softBodyGetDragCoefficient(body: RID): number { return _C($(), 13690, body) as number; }
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Moves the given soft body point to a position in global coordinates.
|
|
736
|
+
*/
|
|
737
|
+
static softBodyMovePoint(body: RID, pointIndex: number, globalPosition: Vector3): void { _C($(), 13700, body, pointIndex, globalPosition); }
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Returns the current position of the given soft body point in global coordinates.
|
|
741
|
+
*/
|
|
742
|
+
static softBodyGetPointGlobalPosition(body: RID, pointIndex: number): Vector3 { return _C($(), 13692, body, pointIndex) as Vector3; }
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Unpins all points of the given soft body.
|
|
746
|
+
*/
|
|
747
|
+
static softBodyRemoveAllPinnedPoints(body: RID): void { _C($(), 13702, body); }
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Pins or unpins the given soft body point based on the value of `pin`.
|
|
751
|
+
* **Note:** Pinning a point effectively makes it kinematic, preventing it from being affected by forces, but you can still move it using {@link softBodyMovePoint}.
|
|
752
|
+
*/
|
|
753
|
+
static softBodyPinPoint(body: RID, pointIndex: number, pin: boolean): void { _C($(), 13701, body, pointIndex, pin); }
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Returns whether the given soft body point is pinned.
|
|
757
|
+
*/
|
|
758
|
+
static softBodyIsPointPinned(body: RID, pointIndex: number): boolean { return _C($(), 13699, body, pointIndex) as boolean; }
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Applies an impulse to a point.
|
|
762
|
+
* 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).
|
|
763
|
+
*/
|
|
764
|
+
static softBodyApplyPointImpulse(body: RID, pointIndex: number, impulse: Vector3): void { _C($(), 13684, body, pointIndex, impulse); }
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Applies a force to a point. A force is time dependent and meant to be applied every physics update.
|
|
768
|
+
*/
|
|
769
|
+
static softBodyApplyPointForce(body: RID, pointIndex: number, force: Vector3): void { _C($(), 13683, body, pointIndex, force); }
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Distributes and applies an impulse to all points.
|
|
773
|
+
* 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).
|
|
774
|
+
*/
|
|
775
|
+
static softBodyApplyCentralImpulse(body: RID, impulse: Vector3): void { _C($(), 13682, body, impulse); }
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Distributes and applies a force to all points. A force is time dependent and meant to be applied every physics update.
|
|
779
|
+
*/
|
|
780
|
+
static softBodyApplyCentralForce(body: RID, force: Vector3): void { _C($(), 13681, body, force); }
|
|
781
|
+
|
|
782
|
+
static jointCreate(): RID { return _C($(), 8478) as RID; }
|
|
783
|
+
|
|
784
|
+
static jointClear(joint: RID): void { _C($(), 8476, joint); }
|
|
785
|
+
|
|
786
|
+
static jointMakePin(joint: RID, bodyA: RID, localA: Vector3, bodyB: RID, localB: Vector3): void { _C($(), 8491, joint, bodyA, localA, bodyB, localB); }
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Sets a pin joint parameter.
|
|
790
|
+
*/
|
|
791
|
+
static pinJointSetParam(joint: RID, param: PinJointParam, value: number): void { _C($(), 9427, joint, param, value); }
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Gets a pin joint parameter.
|
|
795
|
+
*/
|
|
796
|
+
static pinJointGetParam(joint: RID, param: PinJointParam): number { return _C($(), 9423, joint, param) as number; }
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Sets position of the joint in the local space of body a of the joint.
|
|
800
|
+
*/
|
|
801
|
+
static pinJointSetLocalA(joint: RID, localA: Vector3): void { _C($(), 9425, joint, localA); }
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Returns position of the joint in the local space of body a of the joint.
|
|
805
|
+
*/
|
|
806
|
+
static pinJointGetLocalA(joint: RID): Vector3 { return _C($(), 9421, joint) as Vector3; }
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Sets position of the joint in the local space of body b of the joint.
|
|
810
|
+
*/
|
|
811
|
+
static pinJointSetLocalB(joint: RID, localB: Vector3): void { _C($(), 9426, joint, localB); }
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Returns position of the joint in the local space of body b of the joint.
|
|
815
|
+
*/
|
|
816
|
+
static pinJointGetLocalB(joint: RID): Vector3 { return _C($(), 9422, joint) as Vector3; }
|
|
817
|
+
|
|
818
|
+
static jointMakeHinge(joint: RID, bodyA: RID, hingeA: Transform3D, bodyB: RID, hingeB: Transform3D): void { _C($(), 8490, joint, bodyA, hingeA, bodyB, hingeB); }
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Sets a hinge joint parameter.
|
|
822
|
+
*/
|
|
823
|
+
static hingeJointSetParam(joint: RID, param: HingeJointParam, value: number): void { _C($(), 7524, joint, param, value); }
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Gets a hinge joint parameter.
|
|
827
|
+
*/
|
|
828
|
+
static hingeJointGetParam(joint: RID, param: HingeJointParam): number { return _C($(), 7522, joint, param) as number; }
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Sets a hinge joint flag.
|
|
832
|
+
*/
|
|
833
|
+
static hingeJointSetFlag(joint: RID, flag: HingeJointFlag, enabled: boolean): void { _C($(), 7523, joint, flag, enabled); }
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Gets a hinge joint flag.
|
|
837
|
+
*/
|
|
838
|
+
static hingeJointGetFlag(joint: RID, flag: HingeJointFlag): boolean { return _C($(), 7521, joint, flag) as boolean; }
|
|
839
|
+
|
|
840
|
+
static jointMakeSlider(joint: RID, bodyA: RID, localRefA: Transform3D, bodyB: RID, localRefB: Transform3D): void { _C($(), 8492, joint, bodyA, localRefA, bodyB, localRefB); }
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Gets a slider joint parameter.
|
|
844
|
+
*/
|
|
845
|
+
static sliderJointSetParam(joint: RID, param: SliderJointParam, value: number): void { _C($(), 13663, joint, param, value); }
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Gets a slider joint parameter.
|
|
849
|
+
*/
|
|
850
|
+
static sliderJointGetParam(joint: RID, param: SliderJointParam): number { return _C($(), 13662, joint, param) as number; }
|
|
851
|
+
|
|
852
|
+
static jointMakeConeTwist(joint: RID, bodyA: RID, localRefA: Transform3D, bodyB: RID, localRefB: Transform3D): void { _C($(), 8486, joint, bodyA, localRefA, bodyB, localRefB); }
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Sets a cone twist joint parameter.
|
|
856
|
+
*/
|
|
857
|
+
static coneTwistJointSetParam(joint: RID, param: ConeTwistJointParam, value: number): void { _C($(), 2429, joint, param, value); }
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Gets a cone twist joint parameter.
|
|
861
|
+
*/
|
|
862
|
+
static coneTwistJointGetParam(joint: RID, param: ConeTwistJointParam): number { return _C($(), 2428, joint, param) as number; }
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Returns the type of the Joint3D.
|
|
866
|
+
*/
|
|
867
|
+
static jointGetType(joint: RID): JointType { return _C($(), 8482, joint) as JointType; }
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Sets the priority value of the Joint3D.
|
|
871
|
+
* **Note:** Only supported when using GodotPhysics3D. This method has no effect when using Jolt Physics, as it does not support joint solver priority.
|
|
872
|
+
*/
|
|
873
|
+
static jointSetSolverPriority(joint: RID, priority: number): void { _C($(), 8497, joint, priority); }
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Gets the priority value of the Joint3D.
|
|
877
|
+
* **Note:** Only supported when using GodotPhysics3D. This method always returns `1` when using Jolt Physics, as it does not support joint solver priority.
|
|
878
|
+
*/
|
|
879
|
+
static jointGetSolverPriority(joint: RID): number { return _C($(), 8481, joint) as number; }
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Sets whether the bodies attached to the {@link Joint3D} will collide with each other.
|
|
883
|
+
*/
|
|
884
|
+
static jointDisableCollisionsBetweenBodies(joint: RID, disable: boolean): void { _C($(), 8479, joint, disable); }
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Returns whether the bodies attached to the {@link Joint3D} will collide with each other.
|
|
888
|
+
*/
|
|
889
|
+
static jointIsDisabledCollisionsBetweenBodies(joint: RID): boolean { return _C($(), 8485, joint) as boolean; }
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Make the joint a generic six degrees of freedom (6DOF) joint. Use {@link generic6dofJointSetFlag} and {@link generic6dofJointSetParam} to set the joint's flags and parameters respectively.
|
|
893
|
+
*/
|
|
894
|
+
static jointMakeGeneric6dof(joint: RID, bodyA: RID, localRefA: Transform3D, bodyB: RID, localRefB: Transform3D): void { _C($(), 8488, joint, bodyA, localRefA, bodyB, localRefB); }
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Sets the value of a given generic 6DOF joint parameter.
|
|
898
|
+
*/
|
|
899
|
+
static generic6dofJointSetParam(joint: RID, axis: number, param: G6DOFJointAxisParam, value: number): void { _C($(), 3647, joint, axis, param, value); }
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Returns the value of a generic 6DOF joint parameter.
|
|
903
|
+
*/
|
|
904
|
+
static generic6dofJointGetParam(joint: RID, axis: number, param: G6DOFJointAxisParam): number { return _C($(), 3645, joint, axis, param) as number; }
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Sets the value of a given generic 6DOF joint flag.
|
|
908
|
+
*/
|
|
909
|
+
static generic6dofJointSetFlag(joint: RID, axis: number, flag: G6DOFJointAxisFlag, enable: boolean): void { _C($(), 3646, joint, axis, flag, enable); }
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Returns the value of a generic 6DOF joint flag.
|
|
913
|
+
*/
|
|
914
|
+
static generic6dofJointGetFlag(joint: RID, axis: number, flag: G6DOFJointAxisFlag): boolean { return _C($(), 3644, joint, axis, flag) as boolean; }
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Destroys any of the objects created by PhysicsServer3D. If the {@link RID} passed is not one of the objects that can be created by PhysicsServer3D, an error will be sent to the console.
|
|
918
|
+
*/
|
|
919
|
+
static freeRid(rid: RID): void { _C($(), 3583, rid); }
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Activates or deactivates the 3D physics engine.
|
|
923
|
+
*/
|
|
924
|
+
static setActive(active: boolean): void { _C($(), 10426, active); }
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Returns the value of a physics engine state specified by `processInfo`.
|
|
928
|
+
*/
|
|
929
|
+
static getProcessInfo(processInfo: ProcessInfo): number { return _C($(), 6024, processInfo) as number; }
|
|
930
|
+
|
|
931
|
+
static readonly name = _R(577, PhysicsServer3D);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export const JointType = {
|
|
935
|
+
/**
|
|
936
|
+
* The {@link Joint3D} is a {@link PinJoint3D}.
|
|
937
|
+
*/
|
|
938
|
+
JOINT_TYPE_PIN: 0,
|
|
939
|
+
/**
|
|
940
|
+
* The {@link Joint3D} is a {@link HingeJoint3D}.
|
|
941
|
+
*/
|
|
942
|
+
JOINT_TYPE_HINGE: 1,
|
|
943
|
+
/**
|
|
944
|
+
* The {@link Joint3D} is a {@link SliderJoint3D}.
|
|
945
|
+
*/
|
|
946
|
+
JOINT_TYPE_SLIDER: 2,
|
|
947
|
+
/**
|
|
948
|
+
* The {@link Joint3D} is a {@link ConeTwistJoint3D}.
|
|
949
|
+
*/
|
|
950
|
+
JOINT_TYPE_CONE_TWIST: 3,
|
|
951
|
+
/**
|
|
952
|
+
* The {@link Joint3D} is a {@link Generic6DOFJoint3D}.
|
|
953
|
+
*/
|
|
954
|
+
JOINT_TYPE_6DOF: 4,
|
|
955
|
+
/**
|
|
956
|
+
* Represents the size of the {@link JointType} enum.
|
|
957
|
+
*/
|
|
958
|
+
JOINT_TYPE_MAX: 5,
|
|
959
|
+
} as const;
|
|
960
|
+
|
|
961
|
+
export type JointType = (typeof JointType)[keyof typeof JointType];
|
|
962
|
+
|
|
963
|
+
export const PinJointParam = {
|
|
964
|
+
/**
|
|
965
|
+
* The strength with which the pinned objects try to stay in positional relation to each other. The higher, the stronger.
|
|
966
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
967
|
+
*/
|
|
968
|
+
PIN_JOINT_BIAS: 0,
|
|
969
|
+
/**
|
|
970
|
+
* The strength with which the pinned objects try to stay in velocity relation to each other. The higher, the stronger.
|
|
971
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
972
|
+
*/
|
|
973
|
+
PIN_JOINT_DAMPING: 1,
|
|
974
|
+
/**
|
|
975
|
+
* If above 0, this value is the maximum value for an impulse that this Joint3D puts on its ends.
|
|
976
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
977
|
+
*/
|
|
978
|
+
PIN_JOINT_IMPULSE_CLAMP: 2,
|
|
979
|
+
} as const;
|
|
980
|
+
|
|
981
|
+
export type PinJointParam = (typeof PinJointParam)[keyof typeof PinJointParam];
|
|
982
|
+
|
|
983
|
+
export const HingeJointParam = {
|
|
984
|
+
/**
|
|
985
|
+
* The speed with which the two bodies get pulled together when they move in different directions.
|
|
986
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
987
|
+
*/
|
|
988
|
+
HINGE_JOINT_BIAS: 0,
|
|
989
|
+
/**
|
|
990
|
+
* The maximum rotation across the Hinge.
|
|
991
|
+
*/
|
|
992
|
+
HINGE_JOINT_LIMIT_UPPER: 1,
|
|
993
|
+
/**
|
|
994
|
+
* The minimum rotation across the Hinge.
|
|
995
|
+
*/
|
|
996
|
+
HINGE_JOINT_LIMIT_LOWER: 2,
|
|
997
|
+
/**
|
|
998
|
+
* The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
|
|
999
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1000
|
+
*/
|
|
1001
|
+
HINGE_JOINT_LIMIT_BIAS: 3,
|
|
1002
|
+
/**
|
|
1003
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1004
|
+
*/
|
|
1005
|
+
HINGE_JOINT_LIMIT_SOFTNESS: 4,
|
|
1006
|
+
/**
|
|
1007
|
+
* The lower this value, the more the rotation gets slowed down.
|
|
1008
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1009
|
+
*/
|
|
1010
|
+
HINGE_JOINT_LIMIT_RELAXATION: 5,
|
|
1011
|
+
/**
|
|
1012
|
+
* Target speed for the motor.
|
|
1013
|
+
*/
|
|
1014
|
+
HINGE_JOINT_MOTOR_TARGET_VELOCITY: 6,
|
|
1015
|
+
/**
|
|
1016
|
+
* Maximum acceleration for the motor.
|
|
1017
|
+
*/
|
|
1018
|
+
HINGE_JOINT_MOTOR_MAX_IMPULSE: 7,
|
|
1019
|
+
} as const;
|
|
1020
|
+
|
|
1021
|
+
export type HingeJointParam = (typeof HingeJointParam)[keyof typeof HingeJointParam];
|
|
1022
|
+
|
|
1023
|
+
export const HingeJointFlag = {
|
|
1024
|
+
/**
|
|
1025
|
+
* If `true`, the Hinge has a maximum and a minimum rotation.
|
|
1026
|
+
*/
|
|
1027
|
+
HINGE_JOINT_FLAG_USE_LIMIT: 0,
|
|
1028
|
+
/**
|
|
1029
|
+
* If `true`, a motor turns the Hinge.
|
|
1030
|
+
*/
|
|
1031
|
+
HINGE_JOINT_FLAG_ENABLE_MOTOR: 1,
|
|
1032
|
+
} as const;
|
|
1033
|
+
|
|
1034
|
+
export type HingeJointFlag = (typeof HingeJointFlag)[keyof typeof HingeJointFlag];
|
|
1035
|
+
|
|
1036
|
+
export const SliderJointParam = {
|
|
1037
|
+
/**
|
|
1038
|
+
* The maximum difference between the pivot points on their X axis before damping happens.
|
|
1039
|
+
*/
|
|
1040
|
+
SLIDER_JOINT_LINEAR_LIMIT_UPPER: 0,
|
|
1041
|
+
/**
|
|
1042
|
+
* The minimum difference between the pivot points on their X axis before damping happens.
|
|
1043
|
+
*/
|
|
1044
|
+
SLIDER_JOINT_LINEAR_LIMIT_LOWER: 1,
|
|
1045
|
+
/**
|
|
1046
|
+
* A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
|
|
1047
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1048
|
+
*/
|
|
1049
|
+
SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS: 2,
|
|
1050
|
+
/**
|
|
1051
|
+
* The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
|
|
1052
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1053
|
+
*/
|
|
1054
|
+
SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION: 3,
|
|
1055
|
+
/**
|
|
1056
|
+
* The amount of damping once the slider limits are surpassed.
|
|
1057
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1058
|
+
*/
|
|
1059
|
+
SLIDER_JOINT_LINEAR_LIMIT_DAMPING: 4,
|
|
1060
|
+
/**
|
|
1061
|
+
* A factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
|
|
1062
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1063
|
+
*/
|
|
1064
|
+
SLIDER_JOINT_LINEAR_MOTION_SOFTNESS: 5,
|
|
1065
|
+
/**
|
|
1066
|
+
* The amount of restitution inside the slider limits.
|
|
1067
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1068
|
+
*/
|
|
1069
|
+
SLIDER_JOINT_LINEAR_MOTION_RESTITUTION: 6,
|
|
1070
|
+
/**
|
|
1071
|
+
* The amount of damping inside the slider limits.
|
|
1072
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1073
|
+
*/
|
|
1074
|
+
SLIDER_JOINT_LINEAR_MOTION_DAMPING: 7,
|
|
1075
|
+
/**
|
|
1076
|
+
* A factor applied to the movement across axes orthogonal to the slider.
|
|
1077
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1078
|
+
*/
|
|
1079
|
+
SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS: 8,
|
|
1080
|
+
/**
|
|
1081
|
+
* The amount of restitution when movement is across axes orthogonal to the slider.
|
|
1082
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1083
|
+
*/
|
|
1084
|
+
SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION: 9,
|
|
1085
|
+
/**
|
|
1086
|
+
* The amount of damping when movement is across axes orthogonal to the slider.
|
|
1087
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1088
|
+
*/
|
|
1089
|
+
SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING: 10,
|
|
1090
|
+
/**
|
|
1091
|
+
* The upper limit of rotation in the slider.
|
|
1092
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1093
|
+
*/
|
|
1094
|
+
SLIDER_JOINT_ANGULAR_LIMIT_UPPER: 11,
|
|
1095
|
+
/**
|
|
1096
|
+
* The lower limit of rotation in the slider.
|
|
1097
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1098
|
+
*/
|
|
1099
|
+
SLIDER_JOINT_ANGULAR_LIMIT_LOWER: 12,
|
|
1100
|
+
/**
|
|
1101
|
+
* A factor applied to the all rotation once the limit is surpassed.
|
|
1102
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1103
|
+
*/
|
|
1104
|
+
SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS: 13,
|
|
1105
|
+
/**
|
|
1106
|
+
* The amount of restitution of the rotation when the limit is surpassed.
|
|
1107
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1108
|
+
*/
|
|
1109
|
+
SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION: 14,
|
|
1110
|
+
/**
|
|
1111
|
+
* The amount of damping of the rotation when the limit is surpassed.
|
|
1112
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1113
|
+
*/
|
|
1114
|
+
SLIDER_JOINT_ANGULAR_LIMIT_DAMPING: 15,
|
|
1115
|
+
/**
|
|
1116
|
+
* A factor that gets applied to the all rotation in the limits.
|
|
1117
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1118
|
+
*/
|
|
1119
|
+
SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS: 16,
|
|
1120
|
+
/**
|
|
1121
|
+
* The amount of restitution of the rotation in the limits.
|
|
1122
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1123
|
+
*/
|
|
1124
|
+
SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION: 17,
|
|
1125
|
+
/**
|
|
1126
|
+
* The amount of damping of the rotation in the limits.
|
|
1127
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1128
|
+
*/
|
|
1129
|
+
SLIDER_JOINT_ANGULAR_MOTION_DAMPING: 18,
|
|
1130
|
+
/**
|
|
1131
|
+
* A factor that gets applied to the all rotation across axes orthogonal to the slider.
|
|
1132
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1133
|
+
*/
|
|
1134
|
+
SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS: 19,
|
|
1135
|
+
/**
|
|
1136
|
+
* The amount of restitution of the rotation across axes orthogonal to the slider.
|
|
1137
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1138
|
+
*/
|
|
1139
|
+
SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION: 20,
|
|
1140
|
+
/**
|
|
1141
|
+
* The amount of damping of the rotation across axes orthogonal to the slider.
|
|
1142
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1143
|
+
*/
|
|
1144
|
+
SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING: 21,
|
|
1145
|
+
/**
|
|
1146
|
+
* Represents the size of the {@link SliderJointParam} enum.
|
|
1147
|
+
*/
|
|
1148
|
+
SLIDER_JOINT_MAX: 22,
|
|
1149
|
+
} as const;
|
|
1150
|
+
|
|
1151
|
+
export type SliderJointParam = (typeof SliderJointParam)[keyof typeof SliderJointParam];
|
|
1152
|
+
|
|
1153
|
+
export const ConeTwistJointParam = {
|
|
1154
|
+
/**
|
|
1155
|
+
* Swing is rotation from side to side, around the axis perpendicular to the twist axis.
|
|
1156
|
+
* The swing span defines, how much rotation will not get corrected along the swing axis.
|
|
1157
|
+
* Could be defined as looseness in the {@link ConeTwistJoint3D}. If below 0.05, this behavior is locked.
|
|
1158
|
+
*/
|
|
1159
|
+
CONE_TWIST_JOINT_SWING_SPAN: 0,
|
|
1160
|
+
/**
|
|
1161
|
+
* Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05.
|
|
1162
|
+
*/
|
|
1163
|
+
CONE_TWIST_JOINT_TWIST_SPAN: 1,
|
|
1164
|
+
/**
|
|
1165
|
+
* The speed with which the swing or twist will take place. The higher, the faster.
|
|
1166
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1167
|
+
*/
|
|
1168
|
+
CONE_TWIST_JOINT_BIAS: 2,
|
|
1169
|
+
/**
|
|
1170
|
+
* The ease with which the Joint3D twists, if it's too low, it takes more force to twist the joint.
|
|
1171
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1172
|
+
*/
|
|
1173
|
+
CONE_TWIST_JOINT_SOFTNESS: 3,
|
|
1174
|
+
/**
|
|
1175
|
+
* Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
|
1176
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1177
|
+
*/
|
|
1178
|
+
CONE_TWIST_JOINT_RELAXATION: 4,
|
|
1179
|
+
} as const;
|
|
1180
|
+
|
|
1181
|
+
export type ConeTwistJointParam = (typeof ConeTwistJointParam)[keyof typeof ConeTwistJointParam];
|
|
1182
|
+
|
|
1183
|
+
export const G6DOFJointAxisParam = {
|
|
1184
|
+
/**
|
|
1185
|
+
* The minimum difference between the pivot points' axes.
|
|
1186
|
+
*/
|
|
1187
|
+
G6DOF_JOINT_LINEAR_LOWER_LIMIT: 0,
|
|
1188
|
+
/**
|
|
1189
|
+
* The maximum difference between the pivot points' axes.
|
|
1190
|
+
*/
|
|
1191
|
+
G6DOF_JOINT_LINEAR_UPPER_LIMIT: 1,
|
|
1192
|
+
/**
|
|
1193
|
+
* A factor that gets applied to the movement across the axes. The lower, the slower the movement.
|
|
1194
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1195
|
+
*/
|
|
1196
|
+
G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS: 2,
|
|
1197
|
+
/**
|
|
1198
|
+
* The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost.
|
|
1199
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1200
|
+
*/
|
|
1201
|
+
G6DOF_JOINT_LINEAR_RESTITUTION: 3,
|
|
1202
|
+
/**
|
|
1203
|
+
* The amount of damping that happens at the linear motion across the axes.
|
|
1204
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1205
|
+
*/
|
|
1206
|
+
G6DOF_JOINT_LINEAR_DAMPING: 4,
|
|
1207
|
+
/**
|
|
1208
|
+
* The velocity that the joint's linear motor will attempt to reach.
|
|
1209
|
+
*/
|
|
1210
|
+
G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY: 5,
|
|
1211
|
+
/**
|
|
1212
|
+
* The maximum force that the linear motor can apply while trying to reach the target velocity.
|
|
1213
|
+
*/
|
|
1214
|
+
G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT: 6,
|
|
1215
|
+
G6DOF_JOINT_LINEAR_SPRING_STIFFNESS: 7,
|
|
1216
|
+
G6DOF_JOINT_LINEAR_SPRING_DAMPING: 8,
|
|
1217
|
+
G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT: 9,
|
|
1218
|
+
/**
|
|
1219
|
+
* The minimum rotation in negative direction to break loose and rotate around the axes.
|
|
1220
|
+
*/
|
|
1221
|
+
G6DOF_JOINT_ANGULAR_LOWER_LIMIT: 10,
|
|
1222
|
+
/**
|
|
1223
|
+
* The minimum rotation in positive direction to break loose and rotate around the axes.
|
|
1224
|
+
*/
|
|
1225
|
+
G6DOF_JOINT_ANGULAR_UPPER_LIMIT: 11,
|
|
1226
|
+
/**
|
|
1227
|
+
* A factor that gets multiplied onto all rotations across the axes.
|
|
1228
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1229
|
+
*/
|
|
1230
|
+
G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS: 12,
|
|
1231
|
+
/**
|
|
1232
|
+
* The amount of rotational damping across the axes. The lower, the more damping occurs.
|
|
1233
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1234
|
+
*/
|
|
1235
|
+
G6DOF_JOINT_ANGULAR_DAMPING: 13,
|
|
1236
|
+
/**
|
|
1237
|
+
* The amount of rotational restitution across the axes. The lower, the more restitution occurs.
|
|
1238
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1239
|
+
*/
|
|
1240
|
+
G6DOF_JOINT_ANGULAR_RESTITUTION: 14,
|
|
1241
|
+
/**
|
|
1242
|
+
* The maximum amount of force that can occur, when rotating around the axes.
|
|
1243
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1244
|
+
*/
|
|
1245
|
+
G6DOF_JOINT_ANGULAR_FORCE_LIMIT: 15,
|
|
1246
|
+
/**
|
|
1247
|
+
* When correcting the crossing of limits in rotation across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
|
|
1248
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1249
|
+
*/
|
|
1250
|
+
G6DOF_JOINT_ANGULAR_ERP: 16,
|
|
1251
|
+
/**
|
|
1252
|
+
* Target speed for the motor at the axes.
|
|
1253
|
+
*/
|
|
1254
|
+
G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY: 17,
|
|
1255
|
+
/**
|
|
1256
|
+
* Maximum acceleration for the motor at the axes.
|
|
1257
|
+
*/
|
|
1258
|
+
G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT: 18,
|
|
1259
|
+
G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS: 19,
|
|
1260
|
+
G6DOF_JOINT_ANGULAR_SPRING_DAMPING: 20,
|
|
1261
|
+
G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT: 21,
|
|
1262
|
+
/**
|
|
1263
|
+
* Represents the size of the {@link G6DOFJointAxisParam} enum.
|
|
1264
|
+
*/
|
|
1265
|
+
G6DOF_JOINT_MAX: 22,
|
|
1266
|
+
} as const;
|
|
1267
|
+
|
|
1268
|
+
export type G6DOFJointAxisParam = (typeof G6DOFJointAxisParam)[keyof typeof G6DOFJointAxisParam];
|
|
1269
|
+
|
|
1270
|
+
export const G6DOFJointAxisFlag = {
|
|
1271
|
+
/**
|
|
1272
|
+
* If set, linear motion is possible within the given limits.
|
|
1273
|
+
*/
|
|
1274
|
+
G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT: 0,
|
|
1275
|
+
/**
|
|
1276
|
+
* If set, rotational motion is possible.
|
|
1277
|
+
*/
|
|
1278
|
+
G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT: 1,
|
|
1279
|
+
G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING: 2,
|
|
1280
|
+
G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING: 3,
|
|
1281
|
+
/**
|
|
1282
|
+
* If set, there is a rotational motor across these axes.
|
|
1283
|
+
*/
|
|
1284
|
+
G6DOF_JOINT_FLAG_ENABLE_MOTOR: 4,
|
|
1285
|
+
/**
|
|
1286
|
+
* If set, there is a linear motor on this axis that targets a specific velocity.
|
|
1287
|
+
*/
|
|
1288
|
+
G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR: 5,
|
|
1289
|
+
/**
|
|
1290
|
+
* Represents the size of the {@link G6DOFJointAxisFlag} enum.
|
|
1291
|
+
*/
|
|
1292
|
+
G6DOF_JOINT_FLAG_MAX: 6,
|
|
1293
|
+
} as const;
|
|
1294
|
+
|
|
1295
|
+
export type G6DOFJointAxisFlag = (typeof G6DOFJointAxisFlag)[keyof typeof G6DOFJointAxisFlag];
|
|
1296
|
+
|
|
1297
|
+
export const ShapeType = {
|
|
1298
|
+
/**
|
|
1299
|
+
* Constant for creating a world boundary shape (used by the {@link WorldBoundaryShape3D} resource).
|
|
1300
|
+
*/
|
|
1301
|
+
SHAPE_WORLD_BOUNDARY: 0,
|
|
1302
|
+
/**
|
|
1303
|
+
* Constant for creating a separation ray shape (used by the {@link SeparationRayShape3D} resource).
|
|
1304
|
+
*/
|
|
1305
|
+
SHAPE_SEPARATION_RAY: 1,
|
|
1306
|
+
/**
|
|
1307
|
+
* Constant for creating a sphere shape (used by the {@link SphereShape3D} resource).
|
|
1308
|
+
*/
|
|
1309
|
+
SHAPE_SPHERE: 2,
|
|
1310
|
+
/**
|
|
1311
|
+
* Constant for creating a box shape (used by the {@link BoxShape3D} resource).
|
|
1312
|
+
*/
|
|
1313
|
+
SHAPE_BOX: 3,
|
|
1314
|
+
/**
|
|
1315
|
+
* Constant for creating a capsule shape (used by the {@link CapsuleShape3D} resource).
|
|
1316
|
+
*/
|
|
1317
|
+
SHAPE_CAPSULE: 4,
|
|
1318
|
+
/**
|
|
1319
|
+
* Constant for creating a cylinder shape (used by the {@link CylinderShape3D} resource).
|
|
1320
|
+
*/
|
|
1321
|
+
SHAPE_CYLINDER: 5,
|
|
1322
|
+
/**
|
|
1323
|
+
* Constant for creating a convex polygon shape (used by the {@link ConvexPolygonShape3D} resource).
|
|
1324
|
+
*/
|
|
1325
|
+
SHAPE_CONVEX_POLYGON: 6,
|
|
1326
|
+
/**
|
|
1327
|
+
* Constant for creating a concave polygon (trimesh) shape (used by the {@link ConcavePolygonShape3D} resource).
|
|
1328
|
+
*/
|
|
1329
|
+
SHAPE_CONCAVE_POLYGON: 7,
|
|
1330
|
+
/**
|
|
1331
|
+
* Constant for creating a heightmap shape (used by the {@link HeightMapShape3D} resource).
|
|
1332
|
+
*/
|
|
1333
|
+
SHAPE_HEIGHTMAP: 8,
|
|
1334
|
+
/**
|
|
1335
|
+
* Constant used internally for a soft body shape. Any attempt to create this kind of shape results in an error.
|
|
1336
|
+
*/
|
|
1337
|
+
SHAPE_SOFT_BODY: 9,
|
|
1338
|
+
/**
|
|
1339
|
+
* Constant used internally for a custom shape. Any attempt to create this kind of shape results in an error when using Godot Physics or Jolt Physics.
|
|
1340
|
+
*/
|
|
1341
|
+
SHAPE_CUSTOM: 10,
|
|
1342
|
+
} as const;
|
|
1343
|
+
|
|
1344
|
+
export type ShapeType = (typeof ShapeType)[keyof typeof ShapeType];
|
|
1345
|
+
|
|
1346
|
+
export const AreaParameter = {
|
|
1347
|
+
/**
|
|
1348
|
+
* Constant to set/get gravity override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
1349
|
+
*/
|
|
1350
|
+
AREA_PARAM_GRAVITY_OVERRIDE_MODE: 0,
|
|
1351
|
+
/**
|
|
1352
|
+
* Constant to set/get gravity strength in an area.
|
|
1353
|
+
*/
|
|
1354
|
+
AREA_PARAM_GRAVITY: 1,
|
|
1355
|
+
/**
|
|
1356
|
+
* Constant to set/get gravity vector/center in an area.
|
|
1357
|
+
*/
|
|
1358
|
+
AREA_PARAM_GRAVITY_VECTOR: 2,
|
|
1359
|
+
/**
|
|
1360
|
+
* Constant to set/get whether the gravity vector of an area is a direction, or a center point.
|
|
1361
|
+
*/
|
|
1362
|
+
AREA_PARAM_GRAVITY_IS_POINT: 3,
|
|
1363
|
+
/**
|
|
1364
|
+
* Constant to set/get the distance at which the gravity strength is equal to the gravity controlled by {@link AREA_PARAM_GRAVITY}. For example, on a planet 100 meters in radius with a surface gravity of 4.0 m/s², set the gravity to 4.0 and the unit distance to 100.0. The gravity will have falloff according to the inverse square law, so in the example, at 200 meters from the center the gravity will be 1.0 m/s² (twice the distance, 1/4th the gravity), at 50 meters it will be 16.0 m/s² (half the distance, 4x the gravity), and so on.
|
|
1365
|
+
* The above is true only when the unit distance is a positive number. When this is set to 0.0, the gravity will be constant regardless of distance.
|
|
1366
|
+
*/
|
|
1367
|
+
AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE: 4,
|
|
1368
|
+
/**
|
|
1369
|
+
* Constant to set/get linear damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
1370
|
+
*/
|
|
1371
|
+
AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE: 5,
|
|
1372
|
+
/**
|
|
1373
|
+
* Constant to set/get the linear damping factor of an area.
|
|
1374
|
+
*/
|
|
1375
|
+
AREA_PARAM_LINEAR_DAMP: 6,
|
|
1376
|
+
/**
|
|
1377
|
+
* Constant to set/get angular damping override mode in an area. See {@link AreaSpaceOverrideMode} for possible values.
|
|
1378
|
+
*/
|
|
1379
|
+
AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE: 7,
|
|
1380
|
+
/**
|
|
1381
|
+
* Constant to set/get the angular damping factor of an area.
|
|
1382
|
+
*/
|
|
1383
|
+
AREA_PARAM_ANGULAR_DAMP: 8,
|
|
1384
|
+
/**
|
|
1385
|
+
* Constant to set/get the priority (order of processing) of an area.
|
|
1386
|
+
*/
|
|
1387
|
+
AREA_PARAM_PRIORITY: 9,
|
|
1388
|
+
/**
|
|
1389
|
+
* Constant to set/get the magnitude of area-specific wind force. This wind force only applies to {@link SoftBody3D} nodes. Other physics bodies are currently not affected by wind.
|
|
1390
|
+
*/
|
|
1391
|
+
AREA_PARAM_WIND_FORCE_MAGNITUDE: 10,
|
|
1392
|
+
/**
|
|
1393
|
+
* Constant to set/get the 3D vector that specifies the origin from which an area-specific wind blows.
|
|
1394
|
+
*/
|
|
1395
|
+
AREA_PARAM_WIND_SOURCE: 11,
|
|
1396
|
+
/**
|
|
1397
|
+
* Constant to set/get the 3D vector that specifies the direction in which an area-specific wind blows.
|
|
1398
|
+
*/
|
|
1399
|
+
AREA_PARAM_WIND_DIRECTION: 12,
|
|
1400
|
+
/**
|
|
1401
|
+
* Constant to set/get the exponential rate at which wind force decreases with distance from its origin.
|
|
1402
|
+
*/
|
|
1403
|
+
AREA_PARAM_WIND_ATTENUATION_FACTOR: 13,
|
|
1404
|
+
} as const;
|
|
1405
|
+
|
|
1406
|
+
export type AreaParameter = (typeof AreaParameter)[keyof typeof AreaParameter];
|
|
1407
|
+
|
|
1408
|
+
export const AreaSpaceOverrideMode = {
|
|
1409
|
+
/**
|
|
1410
|
+
* This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
|
1411
|
+
*/
|
|
1412
|
+
AREA_SPACE_OVERRIDE_DISABLED: 0,
|
|
1413
|
+
/**
|
|
1414
|
+
* 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.
|
|
1415
|
+
*/
|
|
1416
|
+
AREA_SPACE_OVERRIDE_COMBINE: 1,
|
|
1417
|
+
/**
|
|
1418
|
+
* 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.
|
|
1419
|
+
*/
|
|
1420
|
+
AREA_SPACE_OVERRIDE_COMBINE_REPLACE: 2,
|
|
1421
|
+
/**
|
|
1422
|
+
* This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
1423
|
+
*/
|
|
1424
|
+
AREA_SPACE_OVERRIDE_REPLACE: 3,
|
|
1425
|
+
/**
|
|
1426
|
+
* This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
1427
|
+
*/
|
|
1428
|
+
AREA_SPACE_OVERRIDE_REPLACE_COMBINE: 4,
|
|
1429
|
+
} as const;
|
|
1430
|
+
|
|
1431
|
+
export type AreaSpaceOverrideMode = (typeof AreaSpaceOverrideMode)[keyof typeof AreaSpaceOverrideMode];
|
|
1432
|
+
|
|
1433
|
+
export const BodyMode = {
|
|
1434
|
+
/**
|
|
1435
|
+
* 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.
|
|
1436
|
+
*/
|
|
1437
|
+
BODY_MODE_STATIC: 0,
|
|
1438
|
+
/**
|
|
1439
|
+
* Constant for kinematic bodies. In this mode, a body can be only moved by user code and collides with other bodies along its path.
|
|
1440
|
+
*/
|
|
1441
|
+
BODY_MODE_KINEMATIC: 1,
|
|
1442
|
+
/**
|
|
1443
|
+
* Constant for rigid bodies. In this mode, a body can be pushed by other bodies and has forces applied.
|
|
1444
|
+
*/
|
|
1445
|
+
BODY_MODE_RIGID: 2,
|
|
1446
|
+
/**
|
|
1447
|
+
* Constant for linear rigid bodies. In this mode, a body can not rotate, and only its linear velocity is affected by external forces.
|
|
1448
|
+
*/
|
|
1449
|
+
BODY_MODE_RIGID_LINEAR: 3,
|
|
1450
|
+
} as const;
|
|
1451
|
+
|
|
1452
|
+
export type BodyMode = (typeof BodyMode)[keyof typeof BodyMode];
|
|
1453
|
+
|
|
1454
|
+
export const BodyParameter = {
|
|
1455
|
+
/**
|
|
1456
|
+
* Constant to set/get a body's bounce factor.
|
|
1457
|
+
*/
|
|
1458
|
+
BODY_PARAM_BOUNCE: 0,
|
|
1459
|
+
/**
|
|
1460
|
+
* Constant to set/get a body's friction.
|
|
1461
|
+
*/
|
|
1462
|
+
BODY_PARAM_FRICTION: 1,
|
|
1463
|
+
/**
|
|
1464
|
+
* Constant to set/get a body's mass.
|
|
1465
|
+
*/
|
|
1466
|
+
BODY_PARAM_MASS: 2,
|
|
1467
|
+
/**
|
|
1468
|
+
* Constant to set/get a body's inertia.
|
|
1469
|
+
*/
|
|
1470
|
+
BODY_PARAM_INERTIA: 3,
|
|
1471
|
+
/**
|
|
1472
|
+
* Constant to set/get a body's center of mass position in the body's local coordinate system.
|
|
1473
|
+
*/
|
|
1474
|
+
BODY_PARAM_CENTER_OF_MASS: 4,
|
|
1475
|
+
/**
|
|
1476
|
+
* Constant to set/get a body's gravity multiplier.
|
|
1477
|
+
*/
|
|
1478
|
+
BODY_PARAM_GRAVITY_SCALE: 5,
|
|
1479
|
+
/**
|
|
1480
|
+
* Constant to set/get a body's linear damping mode. See {@link BodyDampMode} for possible values.
|
|
1481
|
+
*/
|
|
1482
|
+
BODY_PARAM_LINEAR_DAMP_MODE: 6,
|
|
1483
|
+
/**
|
|
1484
|
+
* Constant to set/get a body's angular damping mode. See {@link BodyDampMode} for possible values.
|
|
1485
|
+
*/
|
|
1486
|
+
BODY_PARAM_ANGULAR_DAMP_MODE: 7,
|
|
1487
|
+
/**
|
|
1488
|
+
* Constant to set/get a body's linear damping factor.
|
|
1489
|
+
*/
|
|
1490
|
+
BODY_PARAM_LINEAR_DAMP: 8,
|
|
1491
|
+
/**
|
|
1492
|
+
* Constant to set/get a body's angular damping factor.
|
|
1493
|
+
*/
|
|
1494
|
+
BODY_PARAM_ANGULAR_DAMP: 9,
|
|
1495
|
+
/**
|
|
1496
|
+
* Represents the size of the {@link BodyParameter} enum.
|
|
1497
|
+
*/
|
|
1498
|
+
BODY_PARAM_MAX: 10,
|
|
1499
|
+
} as const;
|
|
1500
|
+
|
|
1501
|
+
export type BodyParameter = (typeof BodyParameter)[keyof typeof BodyParameter];
|
|
1502
|
+
|
|
1503
|
+
export const BodyDampMode = {
|
|
1504
|
+
/**
|
|
1505
|
+
* The body's damping value is added to any value set in areas or the default value.
|
|
1506
|
+
*/
|
|
1507
|
+
BODY_DAMP_MODE_COMBINE: 0,
|
|
1508
|
+
/**
|
|
1509
|
+
* The body's damping value replaces any value set in areas or the default value.
|
|
1510
|
+
*/
|
|
1511
|
+
BODY_DAMP_MODE_REPLACE: 1,
|
|
1512
|
+
} as const;
|
|
1513
|
+
|
|
1514
|
+
export type BodyDampMode = (typeof BodyDampMode)[keyof typeof BodyDampMode];
|
|
1515
|
+
|
|
1516
|
+
export const BodyState = {
|
|
1517
|
+
/**
|
|
1518
|
+
* Constant to set/get the current transform matrix of the body.
|
|
1519
|
+
*/
|
|
1520
|
+
BODY_STATE_TRANSFORM: 0,
|
|
1521
|
+
/**
|
|
1522
|
+
* Constant to set/get the current linear velocity of the body.
|
|
1523
|
+
*/
|
|
1524
|
+
BODY_STATE_LINEAR_VELOCITY: 1,
|
|
1525
|
+
/**
|
|
1526
|
+
* Constant to set/get the current angular velocity of the body.
|
|
1527
|
+
*/
|
|
1528
|
+
BODY_STATE_ANGULAR_VELOCITY: 2,
|
|
1529
|
+
/**
|
|
1530
|
+
* Constant to sleep/wake up a body, or to get whether it is sleeping.
|
|
1531
|
+
*/
|
|
1532
|
+
BODY_STATE_SLEEPING: 3,
|
|
1533
|
+
/**
|
|
1534
|
+
* Constant to set/get whether the body can sleep.
|
|
1535
|
+
*/
|
|
1536
|
+
BODY_STATE_CAN_SLEEP: 4,
|
|
1537
|
+
} as const;
|
|
1538
|
+
|
|
1539
|
+
export type BodyState = (typeof BodyState)[keyof typeof BodyState];
|
|
1540
|
+
|
|
1541
|
+
export const AreaBodyStatus = {
|
|
1542
|
+
/**
|
|
1543
|
+
* The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
|
1544
|
+
*/
|
|
1545
|
+
AREA_BODY_ADDED: 0,
|
|
1546
|
+
/**
|
|
1547
|
+
* The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
|
1548
|
+
*/
|
|
1549
|
+
AREA_BODY_REMOVED: 1,
|
|
1550
|
+
} as const;
|
|
1551
|
+
|
|
1552
|
+
export type AreaBodyStatus = (typeof AreaBodyStatus)[keyof typeof AreaBodyStatus];
|
|
1553
|
+
|
|
1554
|
+
export const ProcessInfo = {
|
|
1555
|
+
/**
|
|
1556
|
+
* Constant to get the number of objects that are not sleeping.
|
|
1557
|
+
*/
|
|
1558
|
+
INFO_ACTIVE_OBJECTS: 0,
|
|
1559
|
+
/**
|
|
1560
|
+
* Constant to get the number of possible collisions.
|
|
1561
|
+
*/
|
|
1562
|
+
INFO_COLLISION_PAIRS: 1,
|
|
1563
|
+
/**
|
|
1564
|
+
* Constant to get the number of space regions where a collision could occur.
|
|
1565
|
+
*/
|
|
1566
|
+
INFO_ISLAND_COUNT: 2,
|
|
1567
|
+
} as const;
|
|
1568
|
+
|
|
1569
|
+
export type ProcessInfo = (typeof ProcessInfo)[keyof typeof ProcessInfo];
|
|
1570
|
+
|
|
1571
|
+
export const SpaceParameter = {
|
|
1572
|
+
/**
|
|
1573
|
+
* Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
|
1574
|
+
*/
|
|
1575
|
+
SPACE_PARAM_CONTACT_RECYCLE_RADIUS: 0,
|
|
1576
|
+
/**
|
|
1577
|
+
* Constant to set/get the maximum distance a shape can be from another before they are considered separated and the contact is discarded.
|
|
1578
|
+
*/
|
|
1579
|
+
SPACE_PARAM_CONTACT_MAX_SEPARATION: 1,
|
|
1580
|
+
/**
|
|
1581
|
+
* Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
|
1582
|
+
*/
|
|
1583
|
+
SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION: 2,
|
|
1584
|
+
/**
|
|
1585
|
+
* 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.
|
|
1586
|
+
*/
|
|
1587
|
+
SPACE_PARAM_CONTACT_DEFAULT_BIAS: 3,
|
|
1588
|
+
/**
|
|
1589
|
+
* 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.
|
|
1590
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1591
|
+
*/
|
|
1592
|
+
SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: 4,
|
|
1593
|
+
/**
|
|
1594
|
+
* 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.
|
|
1595
|
+
* **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
|
|
1596
|
+
*/
|
|
1597
|
+
SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: 5,
|
|
1598
|
+
/**
|
|
1599
|
+
* 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.
|
|
1600
|
+
*/
|
|
1601
|
+
SPACE_PARAM_BODY_TIME_TO_SLEEP: 6,
|
|
1602
|
+
/**
|
|
1603
|
+
* Constant to set/get the number of solver iterations for contacts and constraints. The greater the number of iterations, the more accurate the collisions and constraints will be. However, a greater number of iterations requires more CPU power, which can decrease performance.
|
|
1604
|
+
*/
|
|
1605
|
+
SPACE_PARAM_SOLVER_ITERATIONS: 7,
|
|
1606
|
+
} as const;
|
|
1607
|
+
|
|
1608
|
+
export type SpaceParameter = (typeof SpaceParameter)[keyof typeof SpaceParameter];
|
|
1609
|
+
|
|
1610
|
+
export const BodyAxis = {
|
|
1611
|
+
BODY_AXIS_LINEAR_X: 1,
|
|
1612
|
+
BODY_AXIS_LINEAR_Y: 2,
|
|
1613
|
+
BODY_AXIS_LINEAR_Z: 4,
|
|
1614
|
+
BODY_AXIS_ANGULAR_X: 8,
|
|
1615
|
+
BODY_AXIS_ANGULAR_Y: 16,
|
|
1616
|
+
BODY_AXIS_ANGULAR_Z: 32,
|
|
1617
|
+
} as const;
|
|
1618
|
+
|
|
1619
|
+
export type BodyAxis = (typeof BodyAxis)[keyof typeof BodyAxis];
|
|
1620
|
+
|