mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
Freeze gameobject M2 animations to prevent cycling
Gameobject M2 instances (books, crates, chests) were continuously cycling their animations because M2Renderer unconditionally loops all sequences. Added setInstanceAnimationFrozen() and freeze all gameobject instances at creation time so they stay in their bind pose.
This commit is contained in:
parent
a58115041f
commit
58681753e5
3 changed files with 14 additions and 0 deletions
|
|
@ -266,6 +266,7 @@ public:
|
|||
|
||||
void setInstancePosition(uint32_t instanceId, const glm::vec3& position);
|
||||
void setInstanceTransform(uint32_t instanceId, const glm::mat4& transform);
|
||||
void setInstanceAnimationFrozen(uint32_t instanceId, bool frozen);
|
||||
void removeInstance(uint32_t instanceId);
|
||||
void removeInstances(const std::vector<uint32_t>& instanceIds);
|
||||
void clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue