II have thinking of doing the fellow for refactor the code:
-
Create an Pressure Plate class (parent class ATriggerVolume). This would have the methods to get and find the total mass in volume
-
Create an class for Door (parent class AActor). This would have an StaticMeshComponent, and PressuePlate, and methods to Open and Close the door.
Would this be going to far?