Adds initialization code for GamePhysicsObject.