Hello i have the problem in UE5 that i move a static mesh according to a data table. this also works but although i have the coordinates X = 0, Y = 0, Z = 0 in it the static mesh moves. only when i delete all coordinates so that the data table is empty the static mesh does not move anymore. My only question now is why does the static mesh move even though all the coordinates are 0?
0,0,0 is a very valid coordinate - it’s the centre of the scene. If something is at 100, 0, 0
and you tell it to go to 0, 0, 0
, it will move 100uus. It sounds as if you wanted the script treat an otherwise valid 0,0,0 as invalid. Would that work for you:
Another, much better imho, way is to include a flag in the Data Table entry, indicating whether this vector (or some of its components), is valid. Consider incorporating more meaningful data in the structs.
3 Likes
I think that was the solution thank you very much for your time
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.