Skip to content

Commit 7bbd5bb

Browse files
committed
fix text in Revolute Sample
1 parent b9b782b commit 7bbd5bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Box2D.NET.Samples/Samples/Joints/RevoluteJoint.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ public override void Draw(Settings settings)
204204
base.Draw(settings);
205205

206206
float angle1 = b2RevoluteJoint_GetAngle(m_jointId1);
207-
m_context.draw.DrawString(5, m_textLine, $"Angle (Deg) 1 = {angle1:2,F1}");
207+
m_context.draw.DrawString(5, m_textLine, $"Angle (Deg) 1 = {angle1:F1}");
208208
m_textLine += m_textIncrement;
209209

210210
float torque1 = b2RevoluteJoint_GetMotorTorque(m_jointId1);
211-
m_context.draw.DrawString(5, m_textLine, $"Motor Torque 1 = {torque1:4,F1}");
211+
m_context.draw.DrawString(5, m_textLine, $"Motor Torque 1 = {torque1:F1}");
212212
m_textLine += m_textIncrement;
213213

214214
float torque2 = b2RevoluteJoint_GetMotorTorque(m_jointId2);
215-
m_context.draw.DrawString(5, m_textLine, $"Motor Torque 2 = {torque2:4,F1}");
215+
m_context.draw.DrawString(5, m_textLine, $"Motor Torque 2 = {torque2:F1}");
216216
m_textLine += m_textIncrement;
217217
}
218218
}

0 commit comments

Comments
 (0)