mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
Fix mounted first-person camera pivot
This commit is contained in:
parent
6f1f3b295b
commit
9556d49ca1
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