public void CreateBendPhysics(string anim_clip) { if (bend_physics_data != null) { bend_physics_data.clearPhysicsChain(); bend_physics_data = null; } CreatureManager cur_manager = creature_renderer.creature_manager; if (physics_container != null) { Destroy(physics_container); } cur_manager.RunAtTime(cur_manager.GetActiveAnimationStartTime()); physics_container = new GameObject("CreaturePhysicsContainer"); bend_physics_data = CreatureModule.CreaturePhysicsData.PhysicsUtil.CreateBendPhysicsChain( physics_container, creature_renderer.gameObject, cur_manager.GetCreature().render_composition, anim_clip, creature_renderer.creature_asset.physics_assets); }