Browse Source

Update 01.hello-world sample

Daniele Bartolini 12 years ago
parent
commit
1c9ee15342
1 changed files with 26 additions and 0 deletions
  1. 26 0
      samples/01.hello-world/global.physics_config

+ 26 - 0
samples/01.hello-world/global.physics_config

@@ -0,0 +1,26 @@
+{
+	"scale" : 64,
+
+	"materials" : {
+		"default" : { "static_friction" : 0.5, "dynamic_friction" : 0.5, "restitution" : 0.1 },
+		"test" : { "static_friction" : 0.2, "dynamic_friction" : 0.7, "restitution" : 0.5 },
+		"light" : { "static_friction" : 0.2, "dynamic_friction" : 0.2, "restitution" : 0.7}
+	},
+
+	"shapes" : {
+		"default" : { "trigger" : false, "collision_filter" : "default" },
+		"trigger" : { "trigger" : true, "collision_filter" : "default" }
+	},
+
+	"actors" : {
+		"static" : { "dynamic" : false },
+		"dynamic" : { "dynamic" : true },
+		"keyframed" : { "dynamic" : true, "kinematic" : true, "disable_gravity" : true },
+		"test" : { "dynamic" : true, "linear_damping" : 10.0, "angular_damping" : 23.0 }
+	},
+
+	"collision_filters" : {
+		"default" : { "collides_with" : ["default"] },
+		"foo" : { "collides_with" : ["default", "foo"] }
+	}
+}