projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix long standing grind bug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
rigidbody.h
diff --git
a/rigidbody.h
b/rigidbody.h
index b3bd4425cb6d493e5a89c7465325891b133eaac5..b1dc834a76ab710d046ec99f729de9da1703d955 100644
(file)
--- a/
rigidbody.h
+++ b/
rigidbody.h
@@
-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 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 );
v3f axis;
v3_cross( rt, ra, axis );