diff options
Diffstat (limited to 'OpenSim')
12 files changed, 68 insertions, 26 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index aeb03a2..482597d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1767,8 +1767,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1767 | part.AbsolutePosition, | 1767 | part.AbsolutePosition, |
1768 | part.Scale, | 1768 | part.Scale, |
1769 | part.RotationOffset, | 1769 | part.RotationOffset, |
1770 | part.PhysActor.IsPhysical, | 1770 | part.PhysActor.IsPhysical); |
1771 | m_localId); | ||
1772 | part.PhysActor.SetMaterial((int)part.Material); | 1771 | part.PhysActor.SetMaterial((int)part.Material); |
1773 | 1772 | ||
1774 | part.PhysActor.LocalID = part.LocalId; | 1773 | part.PhysActor.LocalID = part.LocalId; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2214f2f..980f7a3 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1633,8 +1633,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1633 | AbsolutePosition, | 1633 | AbsolutePosition, |
1634 | Scale, | 1634 | Scale, |
1635 | RotationOffset, | 1635 | RotationOffset, |
1636 | RigidBody, | 1636 | RigidBody); |
1637 | m_localId); | ||
1638 | PhysActor.SetMaterial(Material); | 1637 | PhysActor.SetMaterial(Material); |
1639 | } | 1638 | } |
1640 | catch | 1639 | catch |
@@ -4443,8 +4442,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4443 | AbsolutePosition, | 4442 | AbsolutePosition, |
4444 | Scale, | 4443 | Scale, |
4445 | RotationOffset, | 4444 | RotationOffset, |
4446 | UsePhysics, | 4445 | UsePhysics); |
4447 | m_localId); | ||
4448 | PhysActor.SetMaterial(Material); | 4446 | PhysActor.SetMaterial(Material); |
4449 | 4447 | ||
4450 | pa = PhysActor; | 4448 | pa = PhysActor; |
diff --git a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsScene.cs b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsScene.cs index 6c9d9ab..b6e1cb4 100644 --- a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsScene.cs +++ b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsScene.cs | |||
@@ -84,7 +84,13 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin | |||
84 | */ | 84 | */ |
85 | 85 | ||
86 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 86 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
87 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 87 | Vector3 size, Quaternion rotation) |
88 | { | ||
89 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
90 | } | ||
91 | |||
92 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
93 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
88 | { | 94 | { |
89 | return null; | 95 | return null; |
90 | } | 96 | } |
diff --git a/OpenSim/Region/Physics/BulletDotNETPlugin/BulletDotNETScene.cs b/OpenSim/Region/Physics/BulletDotNETPlugin/BulletDotNETScene.cs index 0d1bd82..6df213d 100644 --- a/OpenSim/Region/Physics/BulletDotNETPlugin/BulletDotNETScene.cs +++ b/OpenSim/Region/Physics/BulletDotNETPlugin/BulletDotNETScene.cs | |||
@@ -213,7 +213,12 @@ namespace OpenSim.Region.Physics.BulletDotNETPlugin | |||
213 | return newPrim; | 213 | return newPrim; |
214 | } | 214 | } |
215 | 215 | ||
216 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 216 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation) |
217 | { | ||
218 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
219 | } | ||
220 | |||
221 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical) | ||
217 | { | 222 | { |
218 | PhysicsActor result; | 223 | PhysicsActor result; |
219 | IMesh mesh = null; | 224 | IMesh mesh = null; |
diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index 8e9edac..f4245b6 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs | |||
@@ -626,7 +626,13 @@ namespace OpenSim.Region.Physics.BulletXPlugin | |||
626 | } | 626 | } |
627 | 627 | ||
628 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, OpenMetaverse.Vector3 position, | 628 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, OpenMetaverse.Vector3 position, |
629 | OpenMetaverse.Vector3 size, OpenMetaverse.Quaternion rotation, bool isPhysical, uint localid) | 629 | OpenMetaverse.Vector3 size, OpenMetaverse.Quaternion rotation) |
630 | { | ||
631 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
632 | } | ||
633 | |||
634 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, OpenMetaverse.Vector3 position, | ||
635 | OpenMetaverse.Vector3 size, OpenMetaverse.Quaternion rotation, bool isPhysical) | ||
630 | { | 636 | { |
631 | PhysicsActor result; | 637 | PhysicsActor result; |
632 | 638 | ||
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs index 82f1b94..7cd2dd1 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | |||
@@ -256,9 +256,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
256 | 256 | ||
257 | 257 | ||
258 | public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size, | 258 | public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size, |
259 | Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode, uint localid) | 259 | Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode) |
260 | { | 260 | { |
261 | m_localID = localid; | ||
262 | ode = dode; | 261 | ode = dode; |
263 | if (!pos.IsFinite()) | 262 | if (!pos.IsFinite()) |
264 | { | 263 | { |
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs index 353db44..a622745 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs | |||
@@ -1717,7 +1717,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation, | 1719 | private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation, |
1720 | IMesh mesh, PrimitiveBaseShape pbs, bool isphysical, uint localid) | 1720 | IMesh mesh, PrimitiveBaseShape pbs, bool isphysical) |
1721 | { | 1721 | { |
1722 | 1722 | ||
1723 | Vector3 pos = position; | 1723 | Vector3 pos = position; |
@@ -1727,7 +1727,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1727 | OdePrim newPrim; | 1727 | OdePrim newPrim; |
1728 | lock (OdeLock) | 1728 | lock (OdeLock) |
1729 | { | 1729 | { |
1730 | newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, ode, localid); | 1730 | newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, ode); |
1731 | 1731 | ||
1732 | lock (_prims) | 1732 | lock (_prims) |
1733 | _prims.Add(newPrim); | 1733 | _prims.Add(newPrim); |
@@ -1749,7 +1749,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1749 | } | 1749 | } |
1750 | 1750 | ||
1751 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 1751 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
1752 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 1752 | Vector3 size, Quaternion rotation) //To be removed |
1753 | { | ||
1754 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
1755 | } | ||
1756 | |||
1757 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
1758 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
1753 | { | 1759 | { |
1754 | PhysicsActor result; | 1760 | PhysicsActor result; |
1755 | IMesh mesh = null; | 1761 | IMesh mesh = null; |
@@ -1757,7 +1763,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1757 | if (needsMeshing(pbs)) | 1763 | if (needsMeshing(pbs)) |
1758 | mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); | 1764 | mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); |
1759 | 1765 | ||
1760 | result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, localid); | 1766 | result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical); |
1761 | 1767 | ||
1762 | return result; | 1768 | return result; |
1763 | } | 1769 | } |
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index de22fae..13ea084 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs | |||
@@ -77,16 +77,15 @@ namespace OpenSim.Region.Physics.Manager | |||
77 | 77 | ||
78 | public abstract void RemovePrim(PhysicsActor prim); | 78 | public abstract void RemovePrim(PhysicsActor prim); |
79 | 79 | ||
80 | //public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
81 | // Vector3 size, Quaternion rotation); //To be removed - Actually removed! | ||
82 | |||
83 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 80 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
84 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid); | 81 | Vector3 size, Quaternion rotation); //To be removed |
82 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
83 | Vector3 size, Quaternion rotation, bool isPhysical); | ||
85 | 84 | ||
86 | public virtual PhysicsActor AddPrimShape(uint localID, string primName, PrimitiveBaseShape pbs, Vector3 position, | 85 | public virtual PhysicsActor AddPrimShape(uint localID, string primName, PrimitiveBaseShape pbs, Vector3 position, |
87 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 86 | Vector3 size, Quaternion rotation, bool isPhysical) |
88 | { | 87 | { |
89 | PhysicsActor ret = AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid); | 88 | PhysicsActor ret = AddPrimShape(primName, pbs, position, size, rotation, isPhysical); |
90 | 89 | ||
91 | if (ret != null) | 90 | if (ret != null) |
92 | ret.LocalID = localID; | 91 | ret.LocalID = localID; |
@@ -263,7 +262,13 @@ namespace OpenSim.Region.Physics.Manager | |||
263 | */ | 262 | */ |
264 | 263 | ||
265 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 264 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
266 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 265 | Vector3 size, Quaternion rotation) //To be removed |
266 | { | ||
267 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
268 | } | ||
269 | |||
270 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
271 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
267 | { | 272 | { |
268 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddPrim({0},{1})", position, size); | 273 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddPrim({0},{1})", position, size); |
269 | return PhysicsActor.Null; | 274 | return PhysicsActor.Null; |
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 88902b0..f5172aa 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |||
@@ -1708,7 +1708,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1708 | } | 1708 | } |
1709 | 1709 | ||
1710 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 1710 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
1711 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 1711 | Vector3 size, Quaternion rotation) //To be removed |
1712 | { | ||
1713 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
1714 | } | ||
1715 | |||
1716 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
1717 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
1712 | { | 1718 | { |
1713 | #if SPAM | 1719 | #if SPAM |
1714 | m_log.DebugFormat("[PHYSICS]: Adding physics actor to {0}", primName); | 1720 | m_log.DebugFormat("[PHYSICS]: Adding physics actor to {0}", primName); |
diff --git a/OpenSim/Region/Physics/OdePlugin/Tests/ODETestClass.cs b/OpenSim/Region/Physics/OdePlugin/Tests/ODETestClass.cs index 5dcd6f5..a7f8baa 100644 --- a/OpenSim/Region/Physics/OdePlugin/Tests/ODETestClass.cs +++ b/OpenSim/Region/Physics/OdePlugin/Tests/ODETestClass.cs | |||
@@ -83,7 +83,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
83 | Vector3 position = new Vector3(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f), 128f); | 83 | Vector3 position = new Vector3(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f), 128f); |
84 | Vector3 size = new Vector3(0.5f, 0.5f, 0.5f); | 84 | Vector3 size = new Vector3(0.5f, 0.5f, 0.5f); |
85 | Quaternion rot = Quaternion.Identity; | 85 | Quaternion rot = Quaternion.Identity; |
86 | PhysicsActor prim = ps.AddPrimShape("CoolShape", newcube, position, size, rot, true, 0); | 86 | PhysicsActor prim = ps.AddPrimShape("CoolShape", newcube, position, size, rot, true); |
87 | OdePrim oprim = (OdePrim)prim; | 87 | OdePrim oprim = (OdePrim)prim; |
88 | OdeScene pscene = (OdeScene) ps; | 88 | OdeScene pscene = (OdeScene) ps; |
89 | 89 | ||
diff --git a/OpenSim/Region/Physics/POSPlugin/POSScene.cs b/OpenSim/Region/Physics/POSPlugin/POSScene.cs index 2f24a50..c3f5040 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSScene.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSScene.cs | |||
@@ -91,7 +91,13 @@ namespace OpenSim.Region.Physics.POSPlugin | |||
91 | */ | 91 | */ |
92 | 92 | ||
93 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 93 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
94 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 94 | Vector3 size, Quaternion rotation) |
95 | { | ||
96 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
97 | } | ||
98 | |||
99 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
100 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
95 | { | 101 | { |
96 | POSPrim prim = new POSPrim(); | 102 | POSPrim prim = new POSPrim(); |
97 | prim.Position = position; | 103 | prim.Position = position; |
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXScene.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXScene.cs index beb3404..4de4b01 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXScene.cs +++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXScene.cs | |||
@@ -108,7 +108,13 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
108 | } | 108 | } |
109 | 109 | ||
110 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 110 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
111 | Vector3 size, Quaternion rotation, bool isPhysical, uint localid) | 111 | Vector3 size, Quaternion rotation) //To be removed |
112 | { | ||
113 | return AddPrimShape(primName, pbs, position, size, rotation, false); | ||
114 | } | ||
115 | |||
116 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | ||
117 | Vector3 size, Quaternion rotation, bool isPhysical) | ||
112 | { | 118 | { |
113 | return AddPrim(position, size, rotation); | 119 | return AddPrim(position, size, rotation); |
114 | } | 120 | } |