35enum class CharacterRigType : uint8_t
41struct CharacterRigSpec
43 CharacterRigType mType = CharacterRigType::FirstPerson;
44 std::string mName =
"Player";
47 bool mFitMeshToHeight =
false;
48 std::string mScriptFile;
49 bool mTagAsPlayer =
true;
50 bool mMainCamera =
true;
55struct CharacterRigMetrics
59 float mCapsuleSegment = 0.0f;
61 float mEyeLocalY = 0.0f;
62 float mPivotLocalY = 0.0f;
63 float mCameraDistance = 0.0f;
64 float mFollowCamHeight = 0.0f;
67namespace CharacterRigBuilder
69 CharacterRigMetrics ComputeMetrics(
const CharacterRigSpec& spec);
77 Node* SpawnRigIntoScene(
const CharacterRigSpec& spec,
Node* parent, glm::vec3 feetPos, std::string& outError);
80 AssetStub* SaveRigAsScene(
const CharacterRigSpec& spec,
AssetDir* dir, std::string& outError);
85 AssetDir* ResolveOrCreateOutputDir(
const std::string& userPath, std::string& outError);
88 bool ToProjectRelativeAssetPath(
const std::string& path, std::string& outRel);
89 std::string GetProjectAssetRoot();
Definition SmartPointer.h:33
Definition SkeletalMesh.h:114