Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Baby 3D Plugin for Construct 2

Make 3D games in Construct 2 powered by Babylon.js · By Pixel Rebirth

How do I detect if a beam is not colliding?

A topic by CataByte created Nov 30, 2025 Views: 61 Replies: 1
Viewing posts 1 to 2

Hello again, how could I detect if a non-linear ray collides with anything? It would be simple if it could be reversed, but it can't. How could I do it?

Developer

If you want to know whether a ray does NOT hit you could simply use a control variable that is set to something different in an event with "On any hit" condition. 
So if it remained at its original value that would mean there was no hit detected.

Let me know if I'm misunderstanding your question.