• R/O
  • SSH
  • HTTPS

nlgp1: Commit


Commit MetaInfo

Revision646 (tree)
Zeit2011-01-11 14:19:57
Autorbiikame

Log Message

Nlgp1.B2DX.Boxの実装を修正

Ändern Zusammenfassung

Diff

--- trunk/Nlgp1/Nlgp1.B2DX/StaticBox.cs (revision 645)
+++ trunk/Nlgp1/Nlgp1.B2DX/StaticBox.cs (revision 646)
@@ -11,7 +11,6 @@
1111 {
1212
1313
14- float rest = 0.6f, dens = 0, fric = 0.3f;
1514 delegate void func();
1615 public StaticBox(Vec2 pos, float angle, World world, float boxwidth, float boxheight, bool noRotateFlag, Dictionary<UserDataKind, string> userdata)
1716 : base(pos, angle, world, boxwidth, boxheight, noRotateFlag, userdata, new Dictionary<ObjectDataKind, float> {{ObjectDataKind.Density,0 }})
--- trunk/Nlgp1/Nlgp1.B2DX/Box.cs (revision 645)
+++ trunk/Nlgp1/Nlgp1.B2DX/Box.cs (revision 646)
@@ -19,8 +19,8 @@
1919 public float Boxheight;
2020 public bool NoRotateFlag;
2121 public myUserData UserData=new myUserData();
22- float rest = 0.6f, dens = 0.1f, fric = 0.3f;
23- float angularDamping = 5, lineardamping = 0.5f;
22+ protected const float rest = 0.6f, dens = 0.1f, fric = 0.3f;
23+ protected const float angularDamping = 5, lineardamping = 0.5f;
2424 Dictionary<ObjectDataKind, float> Objdata=new Dictionary<ObjectDataKind,float>();
2525
2626 //public Box(Vec2 pos, float angle, World world, float boxwidth, float boxheight, bool noRotateFlag, Dictionary<UserDataKind, string> userdata,Dictionary<ObjectDataKind,float> data)
@@ -46,7 +46,7 @@
4646 if (data.ContainsKey(ObjectDataKind.Density)) p.Density = data[ObjectDataKind.Density];
4747 p.Filter = fil;
4848 }
49- PolygonDef makeshape(float boxwidth, float boxheight)
49+ static PolygonDef makeshape(float boxwidth, float boxheight)
5050 {
5151 PolygonDef p = new PolygonDef();
5252 p.SetAsBox(boxwidth, boxheight);
Show on old repository browser