Align method names with DHXJ (GetGameMode/GetLoginMode, CRes::Lock/Unlock, InitSegment, ShiftSegment, AnimMotion, ProcessAlpha, Prim3DCircle/Casting4/Casting5/Cylinder/CylinderHalf/ParticleSpline, Get_Angle, GetRadian, matrix MakeXRotation/AppendYRotation/MakeTranslate/MakeInverse, ResetInput, IncreaseSelection, GetKeyStrokeSize, UpdateMatrix, ResetQueue, Cleanup, CGroundScope::OnProcess). Pure renames, codegen unchanged (baseline with includers).
This commit is contained in:
parent
74b3ce59b3
commit
385c906a98
53 changed files with 204 additions and 204 deletions
|
|
@ -26,7 +26,7 @@ void SampleLegacyPosition(std::span<const ModelPositionKey> keys, int frame, Aff
|
|||
if (keys.empty()) {
|
||||
output.Identity();
|
||||
} else if (keys.size() == 1) {
|
||||
output.SetTranslation(keys[0].position[0], keys[0].position[1], keys[0].position[2]);
|
||||
output.MakeTranslate(keys[0].position[0], keys[0].position[1], keys[0].position[2]);
|
||||
} else {
|
||||
unsigned next = 1;
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ void SampleLegacyPosition(std::span<const ModelPositionKey> keys, int frame, Aff
|
|||
const auto& b = keys[next];
|
||||
const float amount = static_cast<float>((frame - a.frame)) / static_cast<float>((b.frame - a.frame));
|
||||
const float previous = static_cast<float>(1.0 - static_cast<double>(amount));
|
||||
output.SetTranslation(
|
||||
output.MakeTranslate(
|
||||
previous * a.position[0] + amount * b.position[0], previous * a.position[1] + amount * b.position[1], previous * a.position[2] + amount * b.position[2]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue