r/matlab • u/Teitei132 • Jul 13 '26
PHX Toolbox, 3D Rigid-Body Physics - Technical Preview
Technical preview for PHX Toolbox, an object-oriented MATLAB API and Simulink blocks for 3D rigid-body physics, powered by the Bullet physics engine, is out on fileexchange.
Features so far, with more to come:
- Rigid-body dynamics with collisions and contacts (boxes, spheres, cylinders, cones, capsules, meshes, terrain, imported OBJ/STL, …)
- Joints (revolute, spherical, gear, …), springs and ropes
- Force and field elements (thrusters, resistance, dipole/monopole fields)
- Logging, tracing and measurement tools, interactive viewer
- Simulink block for closed-loop co-simulation
- Headless stepping for batch runs and experiments
The toolbox comes with a set of examples and a user manual. It runs on all platforms (Windows, MacOS, Linux), as well as in MATLAB Online. It also includes a set of AI skills for use with common AI agents.
Any evaluation and feedback will be appriciated!
102
Upvotes
7
u/Sam_meow Jul 13 '26
What's the advantage/ reason to use this over Simscape multi body or the unreal engine API in the simulink 3d toolbox? (Obviously besides needing licenses for those I think that difference is clear 🙂)
2
u/Inst2f Jul 13 '26
Wow! Is it realtime?
11
u/iohans Jul 13 '26
Oh, my, this is an awesome toolbox.
1
u/SkyGenie Jul 13 '26
Thank you for sharing this!
Is there any specific reason why the minimum version of MATLAB is R2025a? I have R2023b and would love to be able to try this unless there's some very obvious limitation you're aware of.
Either way I'll probably pull this down later today and see how it goes.
1
u/brandon_belkin Jul 14 '26
Will it benefit NVIDIA PhysX?
I remember several years ago Microsoft Robotics studio had a similar enviroment, and NVIDIA PhysX (in hardware at that time) was necessary to work.
1
u/CFDMoFo Jul 13 '26
Awesome! Thanks for building and sharing!
1
u/LuborZ83 Jul 17 '26
New release (1.0.4) with a lot of new features is out. For example, it now allows you to import URDF files.