Could you maybe provide us a video link, where the laserbeam feature in portal is shown? That might make it easier to understand, what you actually want to do. I might be able to help you further :). If you can, explain it in more detail. Then we might have more of a clue, what you exactly want to do :).
all of it is pprecited but what I want is how to create some kind of dynamic surface that the player want to walk on it an with a scale that transform when he hits a obstacle, like a walkable beam, its no the visual im interested in
What you want to do is use a linetrace from the origin until it hits something. From there, break the hit and get the Impact Location. Do Get Actor Location - Impact Location -> Vector Length to get the distance. Use this distance to scale the mesh in the X axis using proportions
Hmm, if the hit is correct then its probably something to do with the mesh scaling calculation. The code above is from my road builder tool. Im using a trace to get the distance from the track to the floor and scaling the “support.” You can see the tool working here:
To be honest I did something a little more simpler I think, I can show you the blueprint if you want, its something that might not fit all the need that being said because in my project, the laser is coming from a squre so it will always go in the same direction in the x,y axys