While my knowledge of unreal is quite limited, and I still can’t bring myself totally around components, inheritance and the sort, here are my current thoughts:
- Inheritance would work better if you want to be able to grab all similar components. e.g. if you want to be able to grab chairs, lamps, and other things.
- Component would work better if you want to be able to grab individual things and set ech one separetely.
- In order to grab somehting, we need to establish a collision area with the object to grab, and trigger the grab action once that happens. After that, we could assign a key on the keyboard to drop the object.
- When the object is grabbed, we need to make it move in the same way as our character, maybe with something like GetPawnLocation() or similar.
Again, some of my assumptions may be way way off and I may be not understanding at all how inhereitance, components and objects work.