Whats the best way to go about this? basically I’m tinkering with an open world survival type game and when it comes to collecting resources such as wood from trees or stone from rocks, whats the best way to do it? should I place each tree/rock as it’s own object with it’s own actor or can I use the foliage tool to get multiple rocks and trees but still have each one with it’s own actor? so if i chop 1 tree down it doesn’t chop down everything in that foliage set
Best way? who knows. But one way to do it, the short version, is if you use the foliage system do a linetrace from your character or camera and do a query what the linetrace hit and tell the foliage actor to remove the instanced mesh index, followed by spawning an actor which has that mesh that use the same transforms as the mesh you destroyed. With this actor you can then do whatever you want.