mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Fix mounted first-person camera pivot
This commit is contained in:
parent
0ebf4d1e5e
commit
5eebd805ba
3 changed files with 14 additions and 4 deletions
|
|
@ -499,14 +499,20 @@ void Renderer::setMounted(uint32_t mountInstId, float heightOffset) {
|
|||
mountInstanceId_ = mountInstId;
|
||||
mountHeightOffset_ = heightOffset;
|
||||
charAnimState = CharAnimState::MOUNT;
|
||||
if (cameraController) cameraController->setMounted(true);
|
||||
if (cameraController) {
|
||||
cameraController->setMounted(true);
|
||||
cameraController->setMountHeightOffset(heightOffset);
|
||||
}
|
||||
}
|
||||
|
||||
void Renderer::clearMount() {
|
||||
mountInstanceId_ = 0;
|
||||
mountHeightOffset_ = 0.0f;
|
||||
charAnimState = CharAnimState::IDLE;
|
||||
if (cameraController) cameraController->setMounted(false);
|
||||
if (cameraController) {
|
||||
cameraController->setMounted(false);
|
||||
cameraController->setMountHeightOffset(0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t Renderer::resolveMeleeAnimId() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue