Quantcast
Can model doodads use custom camera control? - WoWInterface
Thread Tools Display Modes
08-14-16, 05:31 PM   #1
HeartGoYonder
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 4
Can model doodads use custom camera control?

I'm trying to draw a model on the interface from a top down perspective.

I noticed that WeakAuras does not allow for Pitch or Roll control, only Yaw (or Rotation)... leading me to think that is the only option. Still it seems odd that one axis of rotation is allowed for models drawn to the UI but not the other two.

Drawing the model with lua and then trying to change the camera angle throws a No Custom Camera error when using doodads (character models work fine and can have their camera pitch changed). Is there some alternate way to alter the view of doodad models, or can they only be rotated around the one axis?
  Reply With Quote
08-14-16, 06:08 PM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
After setting :SetCustomCamera(1) if :HasCustomCamera() returns true, then you can modify the model's camera's x, y, z and the camera's target x, y, z values, else you can't. However you might be able to still load preset camera angles with :SetCamera(0-1-2).
  Reply With Quote
08-14-16, 08:08 PM   #3
HeartGoYonder
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 4
Thanks for the help. Turns out that for my purposes :SetPitch() is sufficient.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Can model doodads use custom camera control?

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