aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
diff options
context:
space:
mode:
authorRobert Adams2013-01-23 08:28:36 -0800
committerRobert Adams2013-01-23 14:25:06 -0800
commitc1371ab786a699ce91693e6e575bb81144a79c57 (patch)
tree4ca77ded358520a3ca7f962a89cd544fc001f245 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
parentBulletSim: fix build break introduced by previous commit (diff)
downloadopensim-SC_OLD-c1371ab786a699ce91693e6e575bb81144a79c57.zip
opensim-SC_OLD-c1371ab786a699ce91693e6e575bb81144a79c57.tar.gz
opensim-SC_OLD-c1371ab786a699ce91693e6e575bb81144a79c57.tar.bz2
opensim-SC_OLD-c1371ab786a699ce91693e6e575bb81144a79c57.tar.xz
BulletSim: working on COM
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
index bc163eb..2828cab 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
@@ -140,6 +140,25 @@ public struct EntityProperties
140 public Vector3 Velocity; 140 public Vector3 Velocity;
141 public Vector3 Acceleration; 141 public Vector3 Acceleration;
142 public Vector3 RotationalVelocity; 142 public Vector3 RotationalVelocity;
143
144 public override string ToString()
145 {
146 StringBuilder buff = new StringBuilder();
147 buff.Append("<i=");
148 buff.Append(ID.ToString());
149 buff.Append(",p=");
150 buff.Append(Position.ToString());
151 buff.Append(",r=");
152 buff.Append(Rotation.ToString());
153 buff.Append(",v=");
154 buff.Append(Velocity.ToString());
155 buff.Append(",a=");
156 buff.Append(Acceleration.ToString());
157 buff.Append(",rv=");
158 buff.Append(RotationalVelocity.ToString());
159 buff.Append(">");
160 return buff.ToString();
161 }
143} 162}
144 163
145// Format of this structure must match the definition in the C++ code 164// Format of this structure must match the definition in the C++ code