mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-12 21:47:03 +03:00
Use regular GetJointPosition() for Lara
This commit is contained in:
parent
e50bbdd5a1
commit
f51ec579b8
35 changed files with 92 additions and 115 deletions
|
@ -382,16 +382,6 @@ namespace TEN::Renderer
|
|||
return m_meshes[meshIndex];
|
||||
}
|
||||
|
||||
void Renderer11::GetLaraAbsBonePosition(Vector3& pos, int jointIndex)
|
||||
{
|
||||
if (jointIndex >= MAX_BONES)
|
||||
jointIndex = 0;
|
||||
|
||||
auto world = m_moveableObjects[ID_LARA]->AnimationTransforms[jointIndex];
|
||||
world = world * m_LaraWorldMatrix;
|
||||
pos = Vector3::Transform(pos, world);
|
||||
}
|
||||
|
||||
void Renderer11::GetItemAbsBonePosition(int itemNumber, Vector3& pos, int jointIndex)
|
||||
{
|
||||
auto* rendererItem = &m_items[itemNumber];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue