Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AESContext
- AStar2D
- AStar3D
- AStarGrid2D
- AudioEffectInstance (1)
- AudioSample
- AudioSamplePlayback
- AudioStreamPlayback (5)
- CameraFeed
- CharFXTransform
- ConfigFile
- Crypto
- DTLSServer
- DirAccess
- ENetConnection
- EditorContextMenuPlugin
- EditorDebuggerPlugin
- EditorDebuggerSession
- EditorExportPlatform (6)
- EditorExportPlugin
- EditorExportPreset
- EditorFeatureProfile
- EditorFileSystemImportFormatSupportQuery
- EditorInspectorPlugin
- EditorResourceConversionPlugin
- EditorResourcePreviewGenerator
- EditorResourceTooltipPlugin
- EditorSceneFormatImporter (4)
- EditorScenePostImport
- EditorScenePostImportPlugin
- EditorScript
- EditorTranslationParserPlugin
- EncodedObjectAsID
- EngineProfiler
- Expression
- FileAccess
- GLTFObjectModelProperty
- HMACContext
- HTTPClient
- HashingContext
- ImageFormatLoader (1)
- JavaClass
- JavaObject
- JavaScriptObject
- KinematicCollision2D
- KinematicCollision3D
- Lightmapper (1)
- MeshConvexDecompositionSettings
- MeshDataTool
- MultiplayerAPI (2)
- Mutex
- NavigationPathQueryParameters2D
- NavigationPathQueryParameters3D
- NavigationPathQueryResult2D
- NavigationPathQueryResult3D
- Node3DGizmo (1)
- OggPacketSequencePlayback
- OpenXRAPIExtension
- PCKPacker
- PackedDataContainerRef
- PacketPeer (8)
- PhysicsPointQueryParameters2D
- PhysicsPointQueryParameters3D
- PhysicsRayQueryParameters2D
- PhysicsRayQueryParameters3D
- PhysicsShapeQueryParameters2D
- PhysicsShapeQueryParameters3D
- PhysicsTestMotionParameters2D
- PhysicsTestMotionParameters3D
- PhysicsTestMotionResult2D
- PhysicsTestMotionResult3D
- RDAttachmentFormat
- RDFramebufferPass
- RDPipelineColorBlendState
- RDPipelineColorBlendStateAttachment
- RDPipelineDepthStencilState
- RDPipelineMultisampleState
- RDPipelineRasterizationState
- RDPipelineSpecializationConstant
- RDSamplerState
- RDShaderSource
- RDTextureFormat
- RDTextureView
- RDUniform
- RDVertexAttribute
- RandomNumberGenerator
- RegEx
- RegExMatch
- RenderSceneBuffers (2)
- RenderSceneBuffersConfiguration
- Resource (103)
- ResourceFormatLoader
- ResourceFormatSaver
- ResourceImporter (16)
- SceneState
- SceneTreeTimer
- Semaphore
- SkinReference
- StreamPeer (5)
- SurfaceTool
- TCPServer
- TLSOptions
- TextLine
- TextParagraph
- TextServer (1)
- Thread
- TranslationDomain
- TriangleMesh
- Tween
- Tweener (5)
- UDPServer
- UPNP
- UPNPDevice
- WeakRef
- WebRTCPeerConnection (1)
- XMLParser
- XRInterface (4)
- XRPose
- XRTracker (2)
- ZIPPacker
- ZIPReader
Table of contents
-
const func get_collider(collision_index: int = 0) -> Object -
const func get_collider_id(collision_index: int = 0) -> int -
const func get_collider_rid(collision_index: int = 0) -> RID -
const func get_collider_shape(collision_index: int = 0) -> int -
const func get_collider_velocity(collision_index: int = 0) -> Vector3 -
const func get_collision_count() -> int -
const func get_collision_depth(collision_index: int = 0) -> float -
const func get_collision_local_shape(collision_index: int = 0) -> int -
const func get_collision_normal(collision_index: int = 0) -> Vector3 -
const func get_collision_point(collision_index: int = 0) -> Vector3 -
const func get_collision_safe_fraction() -> float -
const func get_collision_unsafe_fraction() -> float -
const func get_remainder() -> Vector3 -
const func get_travel() -> Vector3
PhysicsTestMotionResult3D #
is_refcounted, is_instantiable, core, not_builtin_classes
Describes the motion and collision result from PhysicsServer3D.body_test_motion.
Describes the motion and collision result from PhysicsServer3D.body_test_motion.
Members #
Methods #
const func get_collider(collision_index: int = 0) -> Object#
Returns the colliding body's attached Object given a collision index (the deepest collision by default), if a collision occurred.
const func get_collider_id(collision_index: int = 0) -> int#
Returns the unique instance ID of the colliding body's attached Object given a collision index (the deepest collision by default), if a collision occurred. See Object.get_instance_id.
const func get_collider_rid(collision_index: int = 0) -> RID#
Returns the colliding body's RID used by the PhysicsServer3D given a collision index (the deepest collision by default), if a collision occurred.
const func get_collider_shape(collision_index: int = 0) -> int#
Returns the colliding body's shape index given a collision index (the deepest collision by default), if a collision occurred. See CollisionObject3D.
const func get_collider_velocity(collision_index: int = 0) -> Vector3#
Returns the colliding body's velocity given a collision index (the deepest collision by default), if a collision occurred.
const func get_collision_count() -> int#
Returns the number of detected collisions.
const func get_collision_depth(collision_index: int = 0) -> float#
Returns the length of overlap along the collision normal given a collision index (the deepest collision by default), if a collision occurred.
const func get_collision_local_shape(collision_index: int = 0) -> int#
Returns the moving object's colliding shape given a collision index (the deepest collision by default), if a collision occurred.
const func get_collision_normal(collision_index: int = 0) -> Vector3#
Returns the colliding body's shape's normal at the point of collision given a collision index (the deepest collision by default), if a collision occurred.
const func get_collision_point(collision_index: int = 0) -> Vector3#
Returns the point of collision in global coordinates given a collision index (the deepest collision by default), if a collision occurred.
const func get_collision_safe_fraction() -> float#
Returns the maximum fraction of the motion that can occur without a collision, between 0 and 1.
const func get_collision_unsafe_fraction() -> float#
Returns the minimum fraction of the motion needed to collide, if a collision occurred, between 0 and 1.
const func get_remainder() -> Vector3#
Returns the moving object's remaining movement vector.
const func get_travel() -> Vector3#
Returns the moving object's travel before collision.