Skip to content

Instantly share code, notes, and snippets.

@zlsa
zlsa / vtvl-output.txt
Created May 8, 2019 06:53
The output of vtvl.py
T+0.0 s
alt: +0.0 m velocity: 0.05 m/s g-force: 1.53 G
thr: 100.0% thrust: 15000.00 N
T+1.0 s
alt: +2.7 m velocity: 5.24 m/s g-force: 1.53 G
thr: 100.0% thrust: 15000.00 N
T+2.0 s
@zlsa
zlsa / vtvl.py
Created May 8, 2019 06:52
Very simple physics simulation for rocket stuff
import math
class Vector2:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
@property
pub struct Vehicle {
id: i32
}
pub struct Simulation {
time: f64,
vehicles: Vec<Vehicle>
}
pub fn foo() {
@zlsa
zlsa / kml.xml
Created March 27, 2015 05:06
FlightGear KML protocol
<?xml version="1.0"?>
<!-- Export to KML -->
<PropertyList>
<generic>
<output>
<line_separator>newline</line_separator>