Mercurial > projects > openmelee
comparison urQuan.d @ 7:2217fd1fe384
added angular and linear velocity limit
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 19:34:20 -0400 |
parents | eb6059f7035a |
children | 4ee9e4a0c03b |
comparison
equal
deleted
inserted
replaced
6:eb6059f7035a | 7:2217fd1fe384 |
---|---|
45 | 45 |
46 this(bzWorld world) { | 46 this(bzWorld world) { |
47 | 47 |
48 super(world); | 48 super(world); |
49 auto bodyDef = new bzBodyDef; | 49 auto bodyDef = new bzBodyDef; |
50 //bodyDef.isBullet = true; | |
50 bodyDef.position = bzVec2(10,5); | 51 bodyDef.position = bzVec2(10,5); |
51 bodyDef.allowFreeze = false; | 52 bodyDef.allowFreeze = false; |
52 rBody = world.createBody(bodyDef); | 53 rBody = world.createBody(bodyDef); |
53 float density = 2.0f; | 54 float density = 5.0f; |
54 | 55 |
55 // Head | 56 // Head |
56 auto head = new bzPolyDef; | 57 auto head = new bzPolyDef; |
57 head.vertices.length = 8; | 58 head.vertices.length = 8; |
58 head.vertices[0] = bzVec2(42,49) * scale; | 59 head.vertices[0] = bzVec2(42,49) * scale; |