Special Effects Yaw Not Working?

Status
Not open for further replies.
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.
 
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.
Back
Top