Skip to content

Commit

Permalink
Use pose multiplication instead of subtraction (#644)
Browse files Browse the repository at this point in the history
Part of gz-math#60.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Jun 7, 2022
1 parent 7f89b11 commit bc2d7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gz/rendering/base/BaseNode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ namespace gz
return _pose;
}

return _pose - parent->WorldPose();
return parent->WorldPose().Inverse() * _pose;
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit bc2d7ba

Please sign in to comment.