aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsScene.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-03-21 01:46:41 +0000
committerUbitUmarov2012-03-21 01:46:41 +0000
commit11ed932263161d1dbea99d4a5699ba6d00894053 (patch)
tree85e26ea10f899ff4a52b7a0c9000daa808cf8282 /OpenSim/Region/Physics/Manager/PhysicsScene.cs
parentadd convex state to mesh key, so a change is detected. (diff)
downloadopensim-SC-11ed932263161d1dbea99d4a5699ba6d00894053.zip
opensim-SC-11ed932263161d1dbea99d4a5699ba6d00894053.tar.gz
opensim-SC-11ed932263161d1dbea99d4a5699ba6d00894053.tar.bz2
opensim-SC-11ed932263161d1dbea99d4a5699ba6d00894053.tar.xz
Tell physics about physics shape when creating. Added some virtual methods to get/set density,gravmod, frition,bounce and shape type ( not in use ). UbitOde now should do convex type on creation or everytime the mesh is changed ( as in change size, shape, etc )
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsScene.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsScene.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
index eca6a0f..f2c0c28 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
@@ -137,6 +137,13 @@ namespace OpenSim.Region.Physics.Manager
137 return AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid); 137 return AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid);
138 } 138 }
139 139
140
141 public virtual PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
142 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, byte shapetype, uint localid)
143 {
144 return AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid);
145 }
146
140 public virtual float TimeDilation 147 public virtual float TimeDilation
141 { 148 {
142 get { return 1.0f; } 149 get { return 1.0f; }