Hello Unreal Community!
Im trying to get started with unreal engine 5 and my first project is something like a physics simulation. My first problem that I couldnt find a solution to is, that I dont know how to make a distance measuring material for a wall. It should look like a measuring scale in the end. Any ideas? Or is the approach wrong?
The purpose of this is, that the scale should be used to measure the falling velocity of a ball with reduced gravity. The scale needs to be physically representable and with a very fine scale.
Thanks for your help!
Hi Tepya,
There are a few measuring tools on the UE marketplace. From what I can tell they mostly use Spline components.
When you have a Spline component, you can do a ‘Get Spline Length’ function, also there’s some potential for creating demarcations with ‘Get Location at Distance Along Spline’.
If you’re looking specifically into materials: the World Position Material could help. (You could scale a cube with this material and it would maintain demarcations.)
Also, not sure if it matters in your context, but it is possible to get the velocity value from the ball directly.
Welcome to the Forums!
Hey,
The world position solution is doing just fine! Its doing almost the same thing what I imagined. Thanks alot! About the velocity: I do know that, but I have struggles with that too. In my final project I want both to be present. Maybe I will open another question about that.
Thanks again!
1 Like