Skip to content

Commit

Permalink
Soft body: drawing kinematic vertices in red
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouwe committed Feb 21, 2024
1 parent 0e319be commit bf26139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jolt/Physics/SoftBody/SoftBodyMotionProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ SoftBodyMotionProperties::EStatus SoftBodyMotionProperties::ParallelUpdate(SoftB
void SoftBodyMotionProperties::DrawVertices(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const
{
for (const Vertex &v : mVertices)
inRenderer->DrawMarker(inCenterOfMassTransform * v.mPosition, Color::sRed, 0.05f);
inRenderer->DrawMarker(inCenterOfMassTransform * v.mPosition, v.mInvMass > 0.0f? Color::sGreen : Color::sRed, 0.05f);
}

void SoftBodyMotionProperties::DrawEdgeConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const
Expand Down

0 comments on commit bf26139

Please sign in to comment.