aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsActor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsActor.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 5af6373..be36be3 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -333,17 +333,20 @@ namespace OpenSim.Region.Physics.Manager
333 } 333 }
334 334
335 /// <summary> 335 /// <summary>
336 /// Velocity of this actor. 336 /// The desired velocity of this actor.
337 /// </summary> 337 /// </summary>
338 /// <remarks> 338 /// <remarks>
339 /// Setting this provides a target velocity for physics scene updates. 339 /// Setting this provides a target velocity for physics scene updates.
340 /// Getting this returns the velocity calculated by physics scene updates, using factors such as target velocity, 340 /// Getting this returns the last set target. Fetch Velocity to get the current velocity.
341 /// time to accelerate and collisions.
342 /// </remarks> 341 /// </remarks>
342 protected Vector3 m_targetVelocity;
343 public virtual Vector3 TargetVelocity 343 public virtual Vector3 TargetVelocity
344 { 344 {
345 get { return Velocity; } 345 get { return m_targetVelocity; }
346 set { Velocity = value; } 346 set {
347 m_targetVelocity = value;
348 Velocity = m_targetVelocity;
349 }
347 } 350 }
348 351
349 public abstract Vector3 Velocity { get; set; } 352 public abstract Vector3 Velocity { get; set; }