Skip to content

Commit

Permalink
Initialize tf in TranslationMotion
Browse files Browse the repository at this point in the history
  • Loading branch information
schmrlng committed Apr 5, 2016
1 parent d65487f commit 648735c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fcl/ccd/motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class TranslationMotion : public MotionBase
const Transform3f& tf2) : MotionBase(),
rot(tf1.getQuatRotation()),
trans_start(tf1.getTranslation()),
trans_range(tf2.getTranslation() - tf1.getTranslation())
trans_range(tf2.getTranslation() - tf1.getTranslation()),
tf(tf1)
{
}

Expand All @@ -64,6 +65,7 @@ class TranslationMotion : public MotionBase
rot.fromRotation(R);
trans_start = T1;
trans_range = T2 - T1;
tf = Transform3f(rot, trans_start);
}

bool integrate(FCL_REAL dt) const
Expand Down

0 comments on commit 648735c

Please sign in to comment.