---
title: "Discussion on \"Sphere Trace Or Capsule Overlap In Godot\" | Hashnode"
description: "Discussion on \"Sphere Trace Or Capsule Overlap In Godot\". If you want to detect all overlapping bodies of a sphere moving along a line segment in Godot, you can use intersect_shape with a capsule oriented along the sphere's path.\nHere's an example function you can use to do this in GDScript:\nfunc get_overla..."
url: "https://hashnode.com/posts/sphere-trace-or-capsule-overlap-in-godot/6564aa8fc29adb82376225bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sphere Trace Or Capsule Overlap In Godot](https://blog.vortexbasis.com/sphere-trace-or-capsule-overlap-in-godot?utm_source=hashnode&utm_medium=feed)

If you want to detect all overlapping bodies of a sphere moving along a line segment in Godot, you can use intersect\_shape with a capsule oriented along the sphere's path. Here's an example function you can use to do this in GDScript: func get\_overla...

Nov 27, 2023 · 1 min read · blog.vortexbasis.com  
Read the article

-   [#godot](https://hashnode.com/tag/godot)
-   [#godot-4](https://hashnode.com/tag/godot-4)
-   [#godot-engine](https://hashnode.com/tag/godot-engine)

## Written by

[Caleb Doise](https://hashnode.com/@vortexbasis)

@vortexbasis · Virginia, US

  
[View profile](https://hashnode.com/@vortexbasis)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
