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
64d04217
Unverified
Commit
64d04217
authored
Mar 11, 2020
by
Justin Carpentier
Committed by
GitHub
Mar 11, 2020
Browse files
core/sphere: fix signs
parent
bcd6a0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/narrowphase/details.h
View file @
64d04217
...
...
@@ -268,8 +268,8 @@ namespace fcl {
normal
=
-
diff
/
len
;
dist
=
len
-
s1
.
radius
-
s2
.
radius
;
p1
.
noalias
()
=
o1
-
normal
*
s1
.
radius
;
p2
.
noalias
()
=
o2
+
normal
*
s2
.
radius
;
p1
.
noalias
()
=
o1
+
normal
*
s1
.
radius
;
p2
.
noalias
()
=
o2
-
normal
*
s2
.
radius
;
return
(
dist
>=
0
);
}
...
...
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