All pastes #987007 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-16 03:42 UTC
rendered paste body
       /**
        * Explanation of rotation calculations:
        * When dropping items Neocron accepts the orientation of the character in the form of 3 bytes:
        * -> along the Y,Z,X axis ( I'll neglect the Z axis in this explanation )
        * 
        * Example(may not be actual values):
        * With an offset, a 360degrees area is split into 4 parts, each 90 degrees.
        * From 0 to 90 degrees the range is from 110,145 to 110,110
        * From 90 to 180 degrees the range is from 145,110 to 145,145
        * -> Notice the 1st value stays the same for the 1st 180degrees then the second value increases
        *    to 45 when at 90 degrees.
        * -> Going on the next 90 degrees to 180, the first will change to 145, the second value will
        *    decrease to 110 once it reaches 180 degrees
        *    
        * In 180 to 360 degrees the first value varies from 110 to 145 while the second is either 110 or 145.
        */