- Throw error if an unsupported attribute is encountered. - Throw errors for invalid function arguments. - Optimize out attributes with a value of 1.
Without the assertion, physics.set does the exact same thing physics.change would do.