Skip to content

Commit

Permalink
undo some changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jan 25, 2025
1 parent 71a3684 commit b143ca3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bullet-featherstone/src/JointFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ void JointFeatures::SetJointVelocity(
return;

const auto *model = this->ReferenceInterface<ModelInfo>(joint->model);

model->body->getJointVelMultiDof(identifier->indexInBtModel)[_dof] =
static_cast<btScalar>(_value);
model->body->wakeUp();
Expand Down Expand Up @@ -302,7 +301,7 @@ void JointFeatures::SetJointForce(
if (!identifier)
return;

auto *model = this->ReferenceInterface<ModelInfo>(joint->model);
const auto *model = this->ReferenceInterface<ModelInfo>(joint->model);
auto *world = this->ReferenceInterface<WorldInfo>(model->world);

// Disable velocity control by removing joint motor constraint
Expand Down

0 comments on commit b143ca3

Please sign in to comment.