Jump to content

Trying to Compile Engine Changes(TAIK) using Linux


Jason Campbell

Recommended Posts

Ok this seems to work so far but is this a bad idea?


I noticed this in some of the rotation calculations

// Constrain the range of mRot.z
               while (mRot.z < 0.0f)
                  mRot.z += M_2PI_F;
               while (mRot.z > M_2PI_F)
                  mRot.z -= M_2PI_F;

 

So I figured it wasn't making it to the writeFloat.


Is this a stupid idea, I placed it right before the writeFloat like so...

 

// // constrain the range of mRot.z
      while (mRot.z < 0.0f)
         mRot.z += M_2PI_F;
      while (mRot.z > M_2PI_F)
         mRot.z -= M_2PI_F;
      stream->writeFloat(mRot.z / M_2PI_F, 7);

 

Seems to work without throwing all those other errors...so far.


Thanks

Link to comment
Share on other sites

I was excited for a second. I think I understand what you are saying.


I didn't apply the division, that was already there, I just re-applied the constraint right before the writeFloat. Should I endeavor to find out why that constraint isn't making it to where (mRot.z / M_2PI_F) is being written?


It was here


https://github.com/GarageGames/Torque3D/blob/7185d9664d7ee8c0469014acce9caad6d1380ea2/Engine/source/T3D/player.cpp#L2625-L2629


and here


https://github.com/GarageGames/Torque3D/blob/7185d9664d7ee8c0469014acce9caad6d1380ea2/Engine/source/T3D/player.cpp#L2705-L2709

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...