Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Fiedler <[email protected]>
  • Loading branch information
gafferongames authored Dec 30, 2023
1 parent e02c650 commit dc75c02
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,17 @@ struct RigidBody
{
serialize_object( stream, position );
serialize_object( stream, orientation );
serialize_bool( stream, atRest );
if ( !atRest )
{
serialize_object( stream, linearVelocity );
serialize_object( stream, angularVelocity );
}
if ( Stream::IsReading && atRest )
else if ( Stream::IsReading && atRest )
{
linearVelocity.x = linearVelocity.y = linearVelocity.z = 0.0;
angularVelocity.x = angularVelocity.y = angularVelocity.z = 0.0;
}
return true;
}
};
Expand Down

0 comments on commit dc75c02

Please sign in to comment.