- Timestamp:
- 2014-07-01 11:04:51 (9 years ago)
- Location:
- 2014/27/AleksanteriV/Protokolla236/Protokolla236/Protokolla236
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/AleksanteriV/Protokolla236/Protokolla236/Protokolla236/MikonPhysicsObject.cs
r5204 r5212 33 33 { 34 34 MikonPhysicsObject childBox = new MikonPhysicsObject(this.game, pieceWidth, pieceHeight); 35 childBox.CollisionIgnoreGroup = 2; 35 if (!useCollisions) 36 { 37 childBox.CollisionIgnoreGroup = 2; 38 } 36 39 childBox.Color = this.Color; 37 40 childBox.Tag = this.Tag; … … 45 48 childBox.Velocity = this.Velocity; 46 49 47 //childBox.Position += offset; 50 //childBox.Position += offset; 51 52 if (RandomGen.NextDouble(0, 1) < 0.2) { 53 childBox.Break(method,pieceCountX,pieceCountY); 54 } 48 55 49 56 Game.Add(childBox);
Note: See TracChangeset
for help on using the changeset viewer.