diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | 19 |
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 |