[Add] FSM추가
[Add] 플레이어 추가 [Add] 애니메이션 검색 기능 추가 [Add] 애니메이션 보간 추가 [Add] Unit클래스 추가
This commit is contained in:
@@ -154,7 +154,7 @@ void CChannel::Update_TransformationMatirx(const vector<CBone*>& Bones, _float f
|
||||
_vector vDeltaAdjusted = {};
|
||||
|
||||
XMMATRIX pre = XMLoadFloat4x4(&m_PreTransformMatrix);
|
||||
vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre*20.f);
|
||||
vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre);
|
||||
|
||||
_vector vRight = pTransform->Get_State(STATE::RIGHT);
|
||||
_vector vUp = pTransform->Get_State(STATE::UP);
|
||||
@@ -166,6 +166,8 @@ void CChannel::Update_TransformationMatirx(const vector<CBone*>& Bones, _float f
|
||||
|
||||
_vector vDeltaWorld = vRight * dx + vUp * dz + vLook * dy;
|
||||
|
||||
vDeltaWorld *= 0.01f;
|
||||
|
||||
_vector vCurrentPos = pTransform->Get_State(STATE::POSITION);
|
||||
_vector vTargetPos = vCurrentPos + vDeltaWorld;
|
||||
|
||||
@@ -175,9 +177,9 @@ void CChannel::Update_TransformationMatirx(const vector<CBone*>& Bones, _float f
|
||||
vTranslation = XMVectorZero();
|
||||
}
|
||||
|
||||
_matrix BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
|
||||
m_BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
|
||||
|
||||
Bones[m_iBoneIndex]->Set_TransformationMatrix(BoneTransformationMatrix);
|
||||
Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user