|
|
@ -5,6 +5,10 @@ class Player < PhysCube |
|
|
|
|
|
|
|
|
|
|
|
@engine = false |
|
|
|
@engine = false |
|
|
|
@thrust = 0.001 |
|
|
|
@thrust = 0.001 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Bind all the binds to all the functions stuff |
|
|
|
|
|
|
|
# world.down_keyhook.add() |
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
private def get_angle_vec |
|
|
|
private def get_angle_vec |
|
|
@ -21,12 +25,6 @@ class Player < PhysCube |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def button_up(id) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def button_up?(id) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def button_down(id) |
|
|
|
def button_down(id) |
|
|
|
case id |
|
|
|
case id |
|
|
|
|
|
|
|
|
|
|
@ -49,9 +47,6 @@ class Player < PhysCube |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def button_down?(id) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def inspect |
|
|
|
def inspect |
|
|
|
return "\nName: #{self.name}\nOrbit of: #{self.parent_orbit.name}\nVel: #{self.vel.magnitude.round(1)} #{self.vel.round(4)}\nAccel: #{self.accel.magnitude.round(4)} #{self.accel.round(4)}\nPos: #{self.pos.round(4)}\nAngle: #{self.angle.round(1)} deg\nEngine: #{self.engine}\nThrust: #{self.thrust}\naccel_vecs: #{self.accel_vecs}\n" |
|
|
|
return "\nName: #{self.name}\nOrbit of: #{self.parent_orbit.name}\nVel: #{self.vel.magnitude.round(1)} #{self.vel.round(4)}\nAccel: #{self.accel.magnitude.round(4)} #{self.accel.round(4)}\nPos: #{self.pos.round(4)}\nAngle: #{self.angle.round(1)} deg\nEngine: #{self.engine}\nThrust: #{self.thrust}\naccel_vecs: #{self.accel_vecs}\n" |
|
|
|
end |
|
|
|
end |
|
|
|