Original Post
Hello, I want to ask a question about Physics and Math together: 1. Can i use verlet integration with Orientation. Something Like that: Orientation is Quaternion Angular Acceleration is Vector3 2. If i can do the 1st: Can i convert Angular acceleration to Quaternion using Euler to Quaternion? Like That: nx, nz, ny are coordinates of Vector3 Thanks, Kasya [Edited by - Kasya on December 13, 2008 7:52:52 AM]
orientation += (orientation - prev_orientation) + angular_acceleration * dt * dt;
double dSY = sin(nz * 0.5f);
double dSP = sin(ny * 0.5f);
double dSR = sin(nx * 0.5f);
double dCY = cos(nz * 0.5f);
double dCP = cos(ny * 0.5f);
double dCR = cos(nx * 0.5f);
x = dSR * dCP * dCY - dCR * dSP * dSY;
y = dCR * dSP * dCY + dSR * dCP * dSY;
z = dCR * dCP * dSY - dSR * dSP * dCY;
w = dCR * dCP * dCY + dSR * dSP * dSY;