aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsActor.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-13 21:42:24 +0100
committerJustin Clark-Casey (justincc)2011-10-13 21:42:24 +0100
commit20da04fd0c909a00c0cdc2585f242e95c868801a (patch)
tree218710c15d1a240bd1c2cca8197c5a696bea0b44 /OpenSim/Region/Physics/Manager/PhysicsActor.cs
parentrefactor: move 3x copy/pasted ode structure removal code in ODECharacter into... (diff)
downloadopensim-SC_OLD-20da04fd0c909a00c0cdc2585f242e95c868801a.zip
opensim-SC_OLD-20da04fd0c909a00c0cdc2585f242e95c868801a.tar.gz
opensim-SC_OLD-20da04fd0c909a00c0cdc2585f242e95c868801a.tar.bz2
opensim-SC_OLD-20da04fd0c909a00c0cdc2585f242e95c868801a.tar.xz
More method doc and formatting changes. Makes DestroyOdeStructures() private
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsActor.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs25
1 files changed, 23 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 1c36e55..96dcfb6 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -202,10 +202,18 @@ namespace OpenSim.Region.Physics.Manager
202 202
203 public virtual void SetMaterial (int material) 203 public virtual void SetMaterial (int material)
204 { 204 {
205
206 } 205 }
207 206
207 /// <summary>
208 /// Position of this actor.
209 /// </summary>
210 /// <remarks>
211 /// Setting this directly moves the actor to a given position.
212 /// Getting this retrieves the position calculated by physics scene updates, using factors such as velocity and
213 /// collisions.
214 /// </remarks>
208 public abstract Vector3 Position { get; set; } 215 public abstract Vector3 Position { get; set; }
216
209 public abstract float Mass { get; } 217 public abstract float Mass { get; }
210 public abstract Vector3 Force { get; set; } 218 public abstract Vector3 Force { get; set; }
211 219
@@ -215,11 +223,24 @@ namespace OpenSim.Region.Physics.Manager
215 public abstract void VehicleRotationParam(int param, Quaternion rotation); 223 public abstract void VehicleRotationParam(int param, Quaternion rotation);
216 public abstract void VehicleFlags(int param, bool remove); 224 public abstract void VehicleFlags(int param, bool remove);
217 225
218 public abstract void SetVolumeDetect(int param); // Allows the detection of collisions with inherently non-physical prims. see llVolumeDetect for more 226 /// <summary>
227 /// Allows the detection of collisions with inherently non-physical prims. see llVolumeDetect for more
228 /// </summary>
229 public abstract void SetVolumeDetect(int param);
219 230
220 public abstract Vector3 GeometricCenter { get; } 231 public abstract Vector3 GeometricCenter { get; }
221 public abstract Vector3 CenterOfMass { get; } 232 public abstract Vector3 CenterOfMass { get; }
233
234 /// <summary>
235 /// Velocity of this actor.
236 /// </summary>
237 /// <remarks>
238 /// Setting this provides a target velocity for physics scene updates.
239 /// Getting this returns the velocity calculated by physics scene updates, using factors such as target velocity,
240 /// time to accelerate and collisions.
241 /// </remarks>
222 public abstract Vector3 Velocity { get; set; } 242 public abstract Vector3 Velocity { get; set; }
243
223 public abstract Vector3 Torque { get; set; } 244 public abstract Vector3 Torque { get; set; }
224 public abstract float CollisionScore { get; set;} 245 public abstract float CollisionScore { get; set;}
225 public abstract Vector3 Acceleration { get; } 246 public abstract Vector3 Acceleration { get; }