Skip to content

Instantly share code, notes, and snippets.

Avatar
☢️
Nuclear powered.

Phoenix1747

☢️
Nuclear powered.
View GitHub Profile
@Phoenix1747
Phoenix1747 / scattering.gd
Last active Oct 23, 2019
Godot script for simple coulomb (Rutherford) scattering
View scattering.gd
extends Control
var ec = 1.602176634/1e19 #elementary charge [C]
var amu = 1.66053906660/1e27 #atomic mass unit [kg]
var vprmtvty = 8.8541878128/1e12 #Vacuum permittivity [F/m]
var scale_m = 1e15 #scale multiplier
var time_m = 1e21 #time divider
var m0 = 1 * amu #Proton