is the the object (istance of prop) build here or in the next range for loop cycle?
while (!WindowShouldClose())
cut…
for (auto pincopallo : props)
{
pincopallo.Render(Knight.getWorldPos());
}
…cut
in practice is the object constructed from time to time in pincopallo variable?
thanks
To be even more precise, a copy of the prop is assigned to pincopallo and that is used in the iteration of the for loop.
The fact that this is a copy isn’t that big of a deal, though. As we’re not interacting with the props directly and the code isn’t changing their properties.