• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Yaw, Pitch, Roll

Status
Not open for further replies.
Level 12
Joined
Feb 23, 2008
Messages
587
Is there a way in jass or vJass. that I can take a model and use code to change its yaw, pitch and roll.

Yaw is easy, look in direction x. Pitch Is what I really need. Roll would be nice but not needed. I have heard it can be done but haven't understood how to do it. I would prefer to see it done in example code. Any Idea?
 
So Without editing a model to do that, you cant. It would require any model I wanted to set the pitch to be edited and imported in the game correct?

There isn't any other way? Because that means If I wanted to do roll also it would be (24 * 24) By rotating every 15 degrees. And it would require to do that to every model I wanted to have that capability.

Thanks for the help though, Ill check out that thread.


Edit* I also Dont understand how to do that to a model has a I have very little modeling experience, can you point me to something that will show me how to do that to a model?
 
I Found some more info.

Theres 2 ways to do this and both of them require a dummy model.

You either use a dummy model with animations for each pitch angle and SetUnitAnimationByIndex to set that z facing, or you use dummy which has its main bone named "head" and then rotate it with SetUnitLookAt

I just dont know how to create a animations for a model. I also Dotn know how to set the main bone as "head".

Is there anywhere that can show me how to do this? Prehaps I should be asking this in the model section, as its more related to how to work with models at this point?
 
Status
Not open for further replies.
Back
Top