mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix game object sign orientation and restrict nameplates to target only
Game object M2 models share the same default facing (+renderX) as character models, so apply the same π/2 offset instead of π when computing renderYawM2go from canonical yaw. This corrects street signs and hanging shop signs that were 90° off after the server-yaw formula fix. Nameplates (health bar + name label) are now only rendered for the currently targeted entity, matching WoW's default UI behaviour and reducing visual noise.
This commit is contained in:
parent
6a681bcf67
commit
18e6c2e767
2 changed files with 6 additions and 1 deletions
|
|
@ -6698,7 +6698,9 @@ void Application::spawnOnlineGameObject(uint64_t guid, uint32_t entry, uint32_t
|
|||
|
||||
glm::vec3 renderPos = core::coords::canonicalToRender(glm::vec3(x, y, z));
|
||||
const float renderYawWmo = orientation;
|
||||
const float renderYawM2go = orientation + glm::radians(180.0f);
|
||||
// M2 game objects: model default faces +renderX. renderYaw = canonical + 90° = server_yaw
|
||||
// (same offset as creature/character renderer so all M2 models face consistently)
|
||||
const float renderYawM2go = orientation + glm::radians(90.0f);
|
||||
|
||||
bool loadedAsWmo = false;
|
||||
if (isWmo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue