im trying to convert this code to c#
for ( int k=0; k < 3; k++ )
if ( anim.jointInfo[j].flags & (1 << k) ) {
//....
}
flags: int
jointInfo: List<>
im trying to convert this code to c#
for ( int k=0; k < 3; k++ )
if ( anim.jointInfo[j].flags & (1 << k) ) {
//....
}
flags: int
jointInfo: List<>
Gotcha, bool vs int thing
for ( int k=0; k < 3; k++ )
if ( anim.jointInfo[j].flags & (1 << k) != 0) {
//....
}