From d54afe212e892b026cf22195a28d735b8ce4d847 Mon Sep 17 00:00:00 2001 From: David Vereb Date: Wed, 24 May 2017 16:18:14 -0400 Subject: [PATCH] Added a few comments. --- Ball.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ball.h b/Ball.h index a16ced0..3617fcd 100644 --- a/Ball.h +++ b/Ball.h @@ -16,11 +16,15 @@ public: { // NOTE(dev): move around by 100 to show that the number is different each time, // but keep the instance number to show you're on the same one. + // NOTE(dev): THIS IS THE CODE that proves that the graphics object does not + // call on the physics system to determind its location. return instance_num + ((rand() % 10) * 100); } static void SetX(int &x, void *instance) { Ball *ball = static_cast(instance); + // NOTE(dev): This could easily be physics_system->GetX(this->physics_lookup_id) + // and GraphicsObject would never have to know about it. x = ball->GetXFromPhysicsSimulation(); return; }