# Making my own PhysicsAsset from skeleton programmatically

**URL:** <https://forums.unrealengine.com/t/making-my-own-physicsasset-from-skeleton-programmatically/504248>\
**Category:** C++\
**Tags:** physics-constraints, physics-asset, unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub, UE4-26, UE4-27, question\
**Created:** [March 5, 2022, 11:36am UTC](https://forums.unrealengine.com/t/making-my-own-physicsasset-from-skeleton-programmatically/504248 "2022-03-05T11:36:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_610e6377](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_610e6377](https://forums.unrealengine.com/u/anonymous_user_610e6377)\
**Post date:** [March 5, 2022, 11:36am UTC](https://forums.unrealengine.com/t/making-my-own-physicsasset-from-skeleton-programmatically/504248/1 "2022-03-05T11:36:48Z")

</div>

I don’t like the way PhAT generates rigid bodies and joints, plus I have a lot of joints that I know exactly how to set their params (like limits), so doing it later in PhAT is a huge waste of time.

What would be the best strategy to do that? I’ve found `FPhysicsAssetUtils::CreateFromSkeletalMeshInternal` but it:

1. does a few things I don’t need - OK, I can copy and modify its source, but…

2. references some APIs that are private, which makes 1) a bit difficult

But maybe there’s a better strategy to create PhysicsAsset from a skeleton that that?

Any ideas?

---

<div class="post-metadata">

**Author:** ![simulacrumgames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simulacrumgames/32/482168_2.png) [@simulacrumgames](https://forums.unrealengine.com/u/simulacrumgames)\
**Post date:** [June 2, 2024, 1:52am UTC](https://forums.unrealengine.com/t/making-my-own-physicsasset-from-skeleton-programmatically/504248/2 "2024-06-02T01:52:41Z")

</div>

Maybe you can just use the (Experimental) physics control component now?
