Skip to main content

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

Thank you so much!
I'll give that a try on my side!

let me know what you need

(1 edit)

Hi again! First of all, thank you for adding the mouse cursor casting feature so quickly.

I tested version 1.0.0.1 and got it working after disabling Use worker in Construct 3 (otherwise MouseCastDebug reported no ptr (no_canvas)).

However, I noticed another issue. The ray always originates from the object that owns the Laser3D behavior, not from the actual 3D Camera position.

My game is a point-and-click game with a rotating 3D camera and a free mouse cursor. Because of that, the ray should ideally start from the camera, just like a standard screen-space raycast.

I tried moving the behavior object to 3DCamera.CameraX, CameraY and CameraZ, but the ray becomes unstable and doesn't behave correctly.

Would it be possible to add an option such as "Use 3D Camera as ray origin", so the ray starts from the camera position instead of the object position?

I think this would make the behavior perfect for point-and-click games using Construct's native 3D Camera.

Thanks again for your work!

(2 edits)

     Ok i think i understand problem now. check this example, i use flying top down camera . do you need this effect? (camera have Lerp / Tween smooth movement so laser also receive this effect)

Yes, this is very close to what I need.
My camera can also rotate around the character, not only move with Lerp/Tween.
Will the laser origin and direction still follow the actual 3D Camera correctly while the camera rotates around the character?
I need the ray to always start from the current camera position and go through the mouse cursor, even during orbit rotation.

With rotating / orbiting camera works for me

Awesome! Thank you! I'll download the new version and test it in my project.

if something you need more or you find bugs let me know

Could you please share a small .c3p example project showing the exact setup?
I’m having trouble reproducing the setup correctly in my project, and I also can’t see the laser visual even though the hit detection works partially.

Thanks again!

send me part of your level at my email delgado88a@o2.pl i setup on your example