Blender has physics options which we can enable for our objects - cloth , fluid etc. Is there a way I can add a custom physical behavior to my objects, where this behavior is modeled as a python script. For example, I'd like to add a new button to the physics tab like "My Physics", and when it is attached as a modifier to objects , the objects follow the behavior as modeled in the script.
Basically, I want to test some physics algorithms and want to use blender for that. So I'd be relying on blender to do the rendering and other things, but the physics will be provided by my code.
Is something like this possible?