Use automatic target anchor for new ragdolls to make it easier for setup

This commit is contained in:
Wojtek Figat
2021-11-04 12:17:52 +01:00
parent f303b1c061
commit d5f9e18107

View File

@@ -321,6 +321,7 @@ namespace FlaxEditor.SceneGraph.Actors
#endif
joint.SetJointLocation(actor.Transform.LocalToWorld(jointPose.TranslationVector));
joint.SetJointOrientation(actor.Transform.Orientation * Quaternion.RotationMatrix(jointPose));
joint.EnableAutoAnchor = true; // Use automatic target anchor to make it easier to setup joint in editor when working with ragdolls
}
}