fix long standing grind bug
[carveJwlIkooP6JGAAIwe30JlM.git] / rigidbody.h
index b3bd4425cb6d493e5a89c7465325891b133eaac5..b1dc834a76ab710d046ec99f729de9da1703d955 100644 (file)
@@ -2229,7 +2229,7 @@ VG_STATIC void rb_effect_spring_target_vector( rigidbody *rba, v3f ra, v3f rt,
                                                float timestep )
 {
    float d = v3_dot( rt, ra );
-   float a = vg_signf( d ) * acosf( vg_clampf( d, -1.0f, 1.0f ) );
+   float a = acosf( vg_clampf( d, -1.0f, 1.0f ) );
 
    v3f axis;
    v3_cross( rt, ra, axis );