MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Init2

Method Init2

engine/Poseidon/World/Simulation/Animation/Animation.cpp:1033–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031 }
1032 }
1033 else
1034 {
1035 Vector3 beg = sShape->Pos(axisSel[0]);
1036 Vector3 end = sShape->Pos(axisSel[1]);
1037 _center[i] = beg;
1038 Vector3 norm = (end - beg);
1039 _direction[i] = norm.Normalized();
1040 }
1041 }
1042}
1043
1044void AnimationRotation::Init2(LODShape* shape, const char* name, const char* begin, const char* end, bool inMemory)
1045{
1046 Animation::Init(shape, name, nullptr);
1047 for (int i = 0; i < shape->NLevels(); i++)
1048 {
1049 if (_selection[i] < 0)
1050 {
1051 continue;
1052 }
1053 Shape* sShape = inMemory ? shape->MemoryLevel() : shape->Level(i);

Callers 1

InitMethod · 0.80

Calls 5

NLevelsMethod · 0.80
MemoryLevelMethod · 0.80
LevelMethod · 0.80
InitFunction · 0.50
NormalizedMethod · 0.45

Tested by

no test coverage detected