Download

Class inheriting from StaticMesh component

I am making a wheeled vehicle and the nozzel of the vehicle is a separate staticmesh component. I wanted the firing mechanism to be controlled by a separate component so I thought of extending the staticmeshcomponent to add some extra functionality. But, the staticmeshcomponent doesn’t have a default constructor.

Anyway other way to achieve what I want?
I can think of using Uscenecomponent and the component has a staticmesh as subcomponent.

Or using a staticmesh and a actorcomponent in the main actor and linking both of them.