Skip to content

Commit 1bce742

Browse files
committed
fix: added setDependentStates call to Body::initializeUnfreeBody
1 parent 0da58e7 commit 1bce742

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/Body.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ Body::initializeUnfreeBody(vec6 r6_in, vec6 v6_in, vec6 a6_in)
175175
initiateStep(r6_in, v6_in, a6_in);
176176
updateFairlead(0.0);
177177

178+
// set positions of any dependent points and rods now (before they are
179+
// initialized)
180+
setDependentStates();
181+
178182
// If any Rod is fixed to the body (not pinned), initialize it now because
179183
// otherwise it won't be initialized
180184
for (auto attached : attachedR)

0 commit comments

Comments
 (0)