aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/sims/test/gui/scenes/BasicScene.scala
blob: 9598ab128eab8fd9e118b5042a6cbb51342bb4ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package sims.test.gui
package scenes

import sims.math._
import sims.dynamics._
import sims.dynamics._

object BasicScene extends Scene {
	
	def init() = {
		world.gravity = Vector2D.Null
		val s = new Circle(1)
		world += new Body(s) {linearVelocity = Vector2D(0.1, 0.01); angularVelocity = 1}
		world += new Body(new Rectangle(2,1)) {linearVelocity = Vector2D(0.1, 0.01); angularVelocity = 1}
	}
	

}