Editing physics assets via python

Hi all,

I’m trying to learn the UE4 python API and I’m running into issues right off the bat. I can load my asset (unreal.PhysicsAsset) but it’s not a very helpful object - I can’t figure out how to get into all of the stuff that it should contain. I need to read and write the properties like damping, mass, angle limits, etc. from its bodies and constraints. But where are they?

For contrast, I look at the C++ UPhysicsAsset class docs and see, right there, that is has a ConstraintSetup member, as well as SkeletalBodySetups. That’s what I need. How do I find and edit this data with the python API?

1 Like