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
605eab57
Commit
605eab57
authored
Feb 15, 2014
by
Ioan A Sucan
Browse files
fix #24
parent
7fb1820d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/narrowphase/narrowphase.cpp
View file @
605eab57
...
...
@@ -1637,7 +1637,7 @@ bool capsuleHalfspaceIntersect(const Capsule& s1, const Transform3f& tf1,
Vec3f
dir_z
=
R
.
getColumn
(
2
);
FCL_REAL
cosa
=
dir_z
.
dot
(
new_s2
.
n
);
if
(
cosa
<
halfspaceIntersectTolerance
<
FCL_REAL
>
())
if
(
std
::
abs
(
cosa
)
<
halfspaceIntersectTolerance
<
FCL_REAL
>
())
{
FCL_REAL
signed_dist
=
new_s2
.
signedDistance
(
T
);
FCL_REAL
depth
=
s1
.
radius
-
signed_dist
;
...
...
Write
Preview
Markdown
is supported
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