Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
2e3d0640
Commit
2e3d0640
authored
May 12, 2013
by
isucan
Browse files
Merge pull request #14 from dartsim/master
Fix bug: sphereSphereIntersect calculates wrong contact point
parents
148c3d91
0b8fcac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/narrowphase/narrowphase.cpp
View file @
2e3d0640
...
...
@@ -150,7 +150,7 @@ bool sphereSphereIntersect(const Sphere& s1, const Transform3f& tf1,
}
if
(
contact_points
)
*
contact_points
=
tf1
.
transform
(
Vec3f
())
+
diff
*
0.5
;
*
contact_points
=
tf1
.
transform
(
Vec3f
())
-
diff
*
s1
.
radius
/
(
s1
.
radius
+
s2
.
radius
)
;
return
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment