Quantcast
Channel: Adobe Community : Popular Discussions - After Effects SDK
Viewing all articles
Browse latest Browse all 73444

Strange AngleParam value

$
0
0

Anyone know if there's some special way to handle an AngleParam?

 

Currently I'm having to divide the value by some ridiculous number (about 3753600) to make it usable as degrees.

 

Here's the function I'm feeding it into (as "rot"):

 

static PF_PixelFloat rotateY(PF_FpLong rot, PF_PixelFloat inVec){

  PF_FpLong tmpX = inVec.red;

  PF_FpLong tmpZ = inVec.blue;

 

 

  inVec.red = tmpX*cosf(rot) + tmpZ*sinf(rot);

  inVec.blue = tmpZ*cosf(rot) - tmpX*sinf(rot);

  return inVec;

}

 

I figured it would just be a matter of converting degrees to radians, but apparently not.


Viewing all articles
Browse latest Browse all 73444

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>