> For the complete documentation index, see [llms.txt](https://multicore-games.gitbook.io/realistic-lasers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://multicore-games.gitbook.io/realistic-lasers/realistic-lasers.md).

# Realistic Lasers

## Overview

> ## **Description**

**Realistic Lasers** is a highly versatile Blueprint for simulating lasers in Unreal Engine. Whether independently spawned, placed in a level, or attached as a child actor, these lasers dynamically compute and update in real time. The system also handles Reflection and Refraction realistically, allowing for customizable behavior.

> ## **Key Features**

1. **Reflection system**

The Laser Reflection system acts like a mirror, bouncing the laser beam off the reflective surface at an angle opposite to the normal axis. Essentially, it follows the law of reflection, maintaining the incident angle relative to the surface normal. This ensures that the virtual lasers interact with the environment in a realistic and visually captivating way.

Use the "**REFLECT**" tag on any ACTOR or COMPONENT.

2. **Refraction system**

The Laser Refraction system simulates the refraction phenomenon. When a laser encounters a transparent or refractive medium, such as glass or water, it bends or changes direction. This phenomenon is governed by Snell’s Law, which relates the incident angle to the refracted angle. Essentially, the laser beam “bends” as it passes through the material, allowing virtual lasers to interact with their environment in a convincingly realistic and visually captivating manner.

Use the "**REFRACT**" tag on any ACTOR or COMPONENT + support for material refraction index parameter.

3. **Detection system**

When any laser, originating from a parent source (Direct, Reflected or Refracted), detects an Actor, it triggers the **Detection System**.

After filtering any unwanted actors using the class and actor filters, the system passes the signal by reference **(Found Actor Event)** or by Interface **(BPI\_Detection)**.

> ## [**Demo level included**](https://multicore-games.itch.io/realistic-lasers-demo)

The demo level includes examples of all features of the **Aim Lock-on Component**, each with interactive examples and use cases!

<details>

<summary><strong>Supported Unreal Engine Versions:</strong></summary>

• UE 5.0

• UE 5.1

• UE 5.2

• UE 5.3

• UE 5.4

• UE 5.5

</details>

{% content-ref url="/pages/HqV5aJe629vNZJR7rIFN" %}
[Features](/realistic-lasers/overview/features.md)
{% endcontent-ref %}

***

## Setup and Implementation

{% content-ref url="/pages/FUPFv1DDxyFRN3qDIlQ9" %}
[Getting set up](/realistic-lasers/setup-and-implementation/getting-set-up.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://multicore-games.gitbook.io/realistic-lasers/realistic-lasers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
