Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

RayCastMult3D

An asset by Saulo de Souza
The page banner background of a mountain and forest
RayCastMult3D thumbnail image
RayCastMult3D thumbnail image
RayCastMult3D hero image

Quick Information

0 ratings
RayCastMult3D icon image
Saulo de Souza
RayCastMult3D

RayCastMult3D is a powerful and customizable multi-hit raycast node for Godot 4.x, designed to perform multiple sequential ray intersection checks between two points in 3D space. It supports body and area collisions, custom exclude lists, visual debugging, and flexible offset/margin settings. This plugin is especially useful for: Advanced shooting or projectile detection. Wall-penetrating sensors (multi-layer collision detection). Environmental scanning or line tracing. Physics debugging tools.

Supported Engine Version
4.5
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
1 day ago
Git URL
Issue URL

RayCastMult3D — Advanced Multi-Hit Raycast Utility for Godot 4.x

RayCastMult3D is a powerful and customizable multi-hit raycast node for Godot 4.x, designed to perform multiple sequential ray intersection checks between two points in 3D space.
It supports body and area collisions, custom exclude lists, visual debugging, and flexible offset/margin settings.

This plugin is especially useful for:

  • Advanced shooting or projectile detection.
  • Wall-penetrating sensors (multi-layer collision detection).
  • Environmental scanning or line tracing.
  • Physics debugging tools.

🚀 Features

  • Multi-hit raycasting (detects multiple collision points along a single ray).
  • Fully configurable collision parameters.
  • Optional debug visualization (with editable material and mesh properties).
  • Dynamic exclusion system (bodies, “from” node, “to” node).
  • Editor warnings and safety checks.
  • Lightweight and fully GDScript-based — no C++ extension needed.

📦 Installation

  1. Copy the RayCastMult3D.gd script into your project’s addons/ folder.
  2. Enable the plugin in Project Settings → Plugins → RayCastMult3D.
  3. Add the node RayCastMult3D to your 3D scene.

🧩 Usage Example

@onready var ray_mult := $RayCastMult3D

func _ready() -> void:
    ray_mult.from = $Player
    ray_mult.to = $Target
    ray_mult.connect("intersect_ray", Callable(self, "_on_ray_hits"))

func _on_ray_hits(results: Array[RaycastMultResult]) -> void:
    for hit in results:
        print("Hit object:", hit.collider, "at position:", hit.position)

RayCastMult3D is a powerful and customizable multi-hit raycast node for Godot 4.x, designed to perform multiple sequential ray intersection checks between two points in 3D space. It supports body and area collisions, custom exclude lists, visual debugging, and flexible offset/margin settings. This plugin is especially useful for: Advanced shooting or projectile detection. Wall-penetrating sensors (multi-layer collision detection). Environmental scanning or line tracing. Physics debugging tools.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
RayCastMult3D icon image
Saulo de Souza
RayCastMult3D

RayCastMult3D is a powerful and customizable multi-hit raycast node for Godot 4.x, designed to perform multiple sequential ray intersection checks between two points in 3D space. It supports body and area collisions, custom exclude lists, visual debugging, and flexible offset/margin settings. This plugin is especially useful for: Advanced shooting or projectile detection. Wall-penetrating sensors (multi-layer collision detection). Environmental scanning or line tracing. Physics debugging tools.

Supported Engine Version
4.5
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
1 day ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers