Hello! I am currently working on setting up the systems for a physics character that is built with 10+ connected joints, rigidbodies, and colliders.
Right now I’m directly modifying/accessing the values such as rigidbody.mass = 5f; This was working fine, but as the project is growing there are now multiple scripts that are accessing and changing a lot of values of each component based on different circumstances. Some scripts are just reading from them, but there are a lot of situations where I need to dynamically change values on the components. There is also the issue of multiple scripts trying to change the same value on a component. It’s turning into a nightmare and I feel like there has to be a better way to handle this.
It seems like I need some kind of middle layer to handle changing the component values in one spot, but I don’t see the best way to implement that in a way that would actually make things cleaner because the middle layer would have the same issues right?
Any suggestions would be very helpful. Thanks!