MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetMTTargetWeight

Method SetMTTargetWeight

Source/Objects/riggedobject.cpp:2257–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2255}
2256
2257void RiggedObject::SetMTTargetWeight(const std::string& target_name, float weight, float weight_weight) {
2258 for (auto& morph_target : morph_targets) {
2259 if (morph_target.name == target_name) {
2260 morph_target.SetScriptWeight(weight, weight_weight);
2261 return;
2262 }
2263 }
2264}
2265
2266vec3 RiggedObject::FetchCenterOffset() {
2267 vec3 offset = total_center_offset;

Callers 1

CSetEyeLookDirImplFunction · 0.80

Calls 1

SetScriptWeightMethod · 0.80

Tested by

no test coverage detected