fixed GJK fallback bug
more point culling chamfer test
This commit is contained in:
parent
b2747eb2b8
commit
991f3f9758
15 changed files with 624 additions and 45 deletions
|
|
@ -1056,7 +1056,7 @@ typedef struct
|
|||
|
||||
#define B3_EDGE_ANGLE_STEPS 127.0f
|
||||
|
||||
static int8_t b3QuantizeEdgeAngle( float radians )
|
||||
int8_t b3QuantizeEdgeAngle( float radians )
|
||||
{
|
||||
float scaled = radians * ( B3_EDGE_ANGLE_STEPS / B3_PI );
|
||||
int quantized = scaled >= 0.0f ? (int)( scaled + 0.5f ) : -(int)( 0.5f - scaled );
|
||||
|
|
|
|||
Loading…
Reference in a new issue