Usecases Of Quaternion In Bb3 ?

Discussion in 'Buildbox 3.0' started by particles, Oct 8, 2018.

  1. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Last edited: Oct 8, 2018
  2. jmiller8031

    jmiller8031 Avid Boxer

    Joined:
    Feb 23, 2018
    Messages:
    218
    Likes Received:
    82
    You don't need to use those. They're most likely used to ensure there is no gimbal lock on rotations. You can just use the normal rotation function and that probably translates to quaternions for you behind the scenes so you don't have to worry about rotation issues.

    Also since rotation functions use Euler angles, these angles only go up to 360 degrees, so if you have a rotation that goes beyond that 360 number you can run into issues during gameplay. That is what quaternions also solve since they're not dependent on fixed numbers. So a calculation is done to translate those Euler angles into quaternions and then back again, ensuring you get the desired results.
     
    Last edited: Oct 9, 2018
    particles and LBPToo like this.
  3. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242

Share This Page