|
|
@@ -45,20 +45,9 @@ function Planet:getSpeed() |
|
|
|
end |
|
|
|
|
|
|
|
function Planet:updatePosition() |
|
|
|
<<<<<<< Updated upstream |
|
|
|
self.x = self.x + self.xSpeed + self.orbitalX |
|
|
|
self.y = self.y + self.ySpeed + self.orbitalY |
|
|
|
======= |
|
|
|
<<<<<<< Updated upstream |
|
|
|
self.x = self.x + self.xSpeed |
|
|
|
self.y = self.y + self.ySpeed |
|
|
|
>>>>>>> Stashed changes |
|
|
|
debug("Updating position of planet " .. self.name .. ": " .. self.x .. " " .. self.y) |
|
|
|
======= |
|
|
|
self.x = self.x + self.xSpeed + self.orbitalX |
|
|
|
self.y = self.y + self.ySpeed + self.orbitalY |
|
|
|
--debug("Updating position of planet " .. self.name .. ": " .. self.x .. " " .. self.y) |
|
|
|
>>>>>>> Stashed changes |
|
|
|
end |
|
|
|
|
|
|
|
function Planet:attract(dt) --Planet doing the attracting, divided in two parts: |
|
|
|