diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs index 33f0337..2fa98b5 100644 --- a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsActor.cs | |||
@@ -256,6 +256,7 @@ namespace OpenSim.Region.PhysicsModules.SharedBase | |||
256 | /// </summary> | 256 | /// </summary> |
257 | public string SOPName; | 257 | public string SOPName; |
258 | 258 | ||
259 | public virtual void CrossingStart() { } | ||
259 | public abstract void CrossingFailure(); | 260 | public abstract void CrossingFailure(); |
260 | 261 | ||
261 | public abstract void link(PhysicsActor obj); | 262 | public abstract void link(PhysicsActor obj); |
@@ -462,6 +463,23 @@ namespace OpenSim.Region.PhysicsModules.SharedBase | |||
462 | public abstract bool SubscribedEvents(); | 463 | public abstract bool SubscribedEvents(); |
463 | 464 | ||
464 | public virtual void AddCollisionEvent(uint CollidedWith, ContactPoint contact) { } | 465 | public virtual void AddCollisionEvent(uint CollidedWith, ContactPoint contact) { } |
466 | public virtual void AddVDTCCollisionEvent(uint CollidedWith, ContactPoint contact) { } | ||
467 | |||
468 | public virtual PhysicsInertiaData GetInertiaData() | ||
469 | { | ||
470 | PhysicsInertiaData data = new PhysicsInertiaData(); | ||
471 | data.TotalMass = this.Mass; | ||
472 | data.CenterOfMass = CenterOfMass - Position; | ||
473 | data.Inertia = Vector3.Zero; | ||
474 | data.InertiaRotation = Vector4.Zero; | ||
475 | return data; | ||
476 | } | ||
477 | |||
478 | public virtual void SetInertiaData(PhysicsInertiaData inertia) | ||
479 | { | ||
480 | } | ||
481 | |||
482 | public virtual float SimulationSuspended { get; set; } | ||
465 | 483 | ||
466 | // Warning in a parent part it returns itself, not null | 484 | // Warning in a parent part it returns itself, not null |
467 | public virtual PhysicsActor ParentActor { get { return this; } } | 485 | public virtual PhysicsActor ParentActor { get { return this; } } |