Closed KyleN97 closed 4 months ago
The DriveToPoseUsingMotors function currently assumes that your ragdoll consists only of SwingTwistConstraint's. It does a hard cast to this constraint type, but since your constraint is a FixedConstraint that will crash. FixedConstraints don't have motors (they're not supposed to move), so this cannot work.
I changed the crash into an assert in #1047
Thanks for the clarification!
I'm trying to see how constrains could be used within a mapped skeleton, however when trying to override the constraint type within RagdollLoader::sLoad() it causes a crash straight away.
Within the void SkeletonMapperTest::Initialize() function i changed:
to
Then loading into the test it will crash, the cause seems to be somewhere relevant to
mRagdoll->DriveToPoseUsingMotors(mRagdollPose);