Thread Tools Display Modes
05-13-24, 01:00 PM   #1
A Deviate Faerie Dragon
Rienwe's Avatar
Join Date: Nov 2023
Posts: 16
Smooth camera follow effect

Please can someone good with code make a "smooth camera follow" effect when i move the camera with the mouse and move my character with the keyboard? Here the effect i wish to have:
  Reply With Quote
05-15-24, 03:27 PM   #2
A Rage Talon Dragon Guard
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 327

I think I understand what you have in mind.

For moving the camera with your mouse, there is probably nothing we can do with the WoW API. Because once the player enters the mouselook mode, we cannot register mouse movement any more.

For keyboard movement, there might be a way.

Hooking the Move{Forward,Backward}{Start,Stop} functions in combination with GetUnitSpeed we could zoom in and out accordingly to make it look like the camera is inert.
But this would only look convincing while you are looking at your character from the back.

Similarly we could hook Turn{Left,Right}{Start,Stop} to pan left and right so the camera looks inert.

But is this really something you would be interested in?
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
05-20-24, 05:25 AM   #3
A Deviate Faerie Dragon
Rienwe's Avatar
Join Date: Nov 2023
Posts: 16
Damn, seems complicated. I'll take whatever is shared.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Smooth camera follow effect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off