Why won't the length of my VR laser update on collision

Hi i’m hoping someone can shed a bit of light on the issue i’m having.

I am wanting the length of the laser fired from the VR controller to change dynamically accordingly to collisions.

This is how my blueprint currently looks, which results in a working laser but unfortunately it doesn’t react to collisions.

You have the distance value going between function calls. It will not exist anymore once the Update Particle Length event is called.

I’m guessing you want to run the trace and get a new distance value on every update. If so, you would need to move the line trace node to the execution chain of Update Particle Length instead. You would also need to do the math for the start and end vectors of the line trace node to specify where the trace starts and ends.

Hey thanks for the reply.

After watching a few different tutorials I now have this. Which I feel is closer to solving the issue but not quite there yet. Any suggestions?

That looks like it could work. I’d suggest using the Blueprint debugger to check that the code runs and the values it outputs look sensible.