From dc75c020326dfcef8695d87ea0a7b079f9599949 Mon Sep 17 00:00:00 2001 From: Glenn Fiedler Date: Sat, 30 Dec 2023 18:48:19 -0500 Subject: [PATCH] Update README.md Signed-off-by: Glenn Fiedler --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index ce16a48..e816b0c 100644 --- a/README.md +++ b/README.md @@ -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; } };