A downloadable behavior

Buy Now
On Sale!
50% Off
$10.00 $5.00 USD or more

Fire a laser beam directly from your 3D Camera in full 3D space. The beam follows your camera's yaw and pitch in real time, with no gimbal lock.

What you get:

  • Full 3D raycast along yaw + pitch direction
  • Sprite-based beam renderer compatible with standard C3 sprites
  • 3D Shape beam renderer — native Box support with correct yaw/pitch rendering
  • Endpoint sprite support (BeamDot) positioned at exact 3D hit point
  • On Hit trigger — fires when the laser hits a target for the first time
  • Is Hitting condition — check if laser is currently hitting something
  • On Mirror Hit trigger — fires when the laser reflects off a mirror surface
  • Hit object UID, hit X/Y/Z expressions for damage and effects
  • HitNormalX/Y/Z expressions — surface normal at hit point for realistic particle effects
  • HitDuration expression — time in seconds the laser has been continuously hitting an object
  • Local-space Offset X/Y/Z — position the laser relative to camera direction, not world axes
  • Mirror 2D object support — reflections from flat sprites using sprite angle as surface normal
  • Mirror 3D object support — reflections from 3D shapes using AABB-based normals across all 6 faces
  • Multi-segment reflections — each LaserBeam instance handles one bounce segment automatically
  • BounceCount expression — number of reflections in the current tick
  • Spawn object on hit — spawn any object at the laser hit point with layer and Z offset control
  • Set Color action — change laser beam color at runtime
  • Set Width action — control laser beam thickness at runtime
  • Adjustable length, ray step size and Z offset
  • Works with any object or family as hit target
  • Compatible with Construct 3's 3D Camera plugin
  • Expressions for Yaw, Pitch, HitLength, HitX, HitY, HitZ, HitObjectUID, LaserWidth, BounceCount

Purchase

Buy Now
On Sale!
50% Off
$10.00 $5.00 USD or more

In order to download this behavior you must purchase it at or above the minimum price of $5 USD. You will get access to the following files:

laser3D example.c3p 2.4 MB
Laser3D.c3addon 101 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.