Home > Space Fight > Revisions to Space Fight’s Physics

Revisions to Space Fight’s Physics

Yesterday I posted about the physics simulation in my game, Space Fight. Since then I have had some suggestions on cplusplus.com for improvement. In particular it was pointed out that there is arguably a difference between the physical position of an object and it’s position on screen (thanks helios).

Last time I said the physics object didn’t keep track of it’s own position as it was part of sf::Sprite in the graphics object. I am now in the process of changing things so that the physics object keeps track of its position separately from the graphics object and then the two values are synchronised by the GameBase class which inherits from both of them.

More on this later, when I’ve finished implementing it!

-Xander

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 77 other followers

%d bloggers like this: