INNER CODE UNIT · C++

rotationSpeed

Hykudoru/Pescado-Engine-Embedded-ESP32S3 · src/main.cpp:169

   float rotationSpeed = (PI / 2) * deltaTime;
   if (spaceShip4)
   {
    spaceShip4->localRotation = Matrix3x3::RotY(-(PI / 10) * deltaTime) * spaceShip4->localRotation;// *spaceShip2->rotation;// MatrixMultiply(YPR(angle * ((screenWidth / 2)), angle * -((screenWidth / 2)), 0), Mesh.meshes[1].rotation);
   }
    cube2.localRotation = Matrix3x3::RotX(rotationSpeed) * cube2.localRotation;// *spaceShip2->rotation;// MatrixMultiply(YPR(angle * ((screenWidth / 2)), angle * -((screenWidth / 2)), 0), Mesh.meshes[1].rotation);
    cube3.localRotation = Matrix3x3::RotY(-rotationSpeed) * Matrix3x3::RotZ(rotationSpeed) * cube3.localRotation;// *spaceShip2->rotation;// MatrixMultiply(YPR(angle * ((screenWidth / 2)), angle * -((screenWidth / 2)), 0), Mesh.meshes[1].rotation);
    cube4.localRotation = Matrix3x3::RotY(2*rotationSpeed) * Matrix3x3::RotZ(rotationSpeed) * cube4.localRotation;// *spaceShip2->rotation;// MatrixMultiply(YPR(angle * ((screenWidth / 2)), angle * -((screenWidth / 2)), 0), Mesh.meshes[1].rotation);
}

TaskHandle_t Core0Task;
TaskHandle_t Core1Task;

void Core0(void * param)
{
  for(;;) 
  {
    Time();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…