how to override set in C# of automatic properties
If you provide your own get/set then you need to provide your own storage for the variable. private float _inverseMass; public float inverseMass { get { return _inverseMass; } set { _inverseMass = value; onMassChanged(); } }