Commits

German Larrain  committed b7990a9

new demo simulation

  • Participants
  • Parent commits 23eb2f1
  • Branches default

Comments (0)

Files changed (1)

File bin/FallingBall.py

+#!/usr/bin/env python
+
+# Created on 2011.12.09
+#
+# @author: german
+
+"""
+Runs the simplest simulation ever: a falling ball impacts the floor
+"""
+
+import sys
+
+from ars.app import Program
+
+class FallingBall(Program):
+	
+	def create_sim_objects(self):
+		self.sim.add_sphere(1, 0.5, (1,10,1))
+
+if __name__ == '__main__':
+	a = FallingBall()
+	a.start()
+	sys.exit(None)