• 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.

Special Effects Yaw Not Working?

Status
Not open for further replies.
Level 45
Joined
Feb 27, 2007
Messages
5,578
My understanding is that the new Blz SFX natives the rotation axes change with each rotation so trying to use something like Euler angles doesn't work (they presume 3 fixed axes of rotation until the full rotation around each is finished). Searching on the forums here should turn up some results with workaround functions/libraries; I believe I've seen them recently.
 
Level 11
Joined
Feb 23, 2009
Messages
577
Edit: if you only want facing use roll instead of yaw

Yes, I realized that for some reason... But what I could not figure out was why angles were not working (-180 to 180 is usual roll values).

So you're saying its -Pi to Pi? That's so weird and random lol ^^... How do you transform per say, an angle to the correct roll value for an effect?
 
It also works with (0 to 2 PI) :). that was just to annouce the difference. this trigo stuf is periodic, a multiple of the angle/radians produces the same result.

To the angle radians conversion.
Use that from blizzard.j
bj_DEGTORAD = bj_PI/180.0​

->
angle * bj_DEGTORAD = wanted radians​
or
angle * PI / 180 = wanted radians​
 
Status
Not open for further replies.
Top