diff options
author | Justin Clark-Casey (justincc) | 2013-07-08 22:07:27 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-07-08 22:07:27 +0100 |
commit | c3db5959441dbd1e04cdd32e92bda9eb5bf2853b (patch) | |
tree | a7b262be4f9f0dc0c7c5464ce5d657351c53a63e /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |
parent | Add "show caps stats by user" and "show caps stats by cap" console commands t... (diff) | |
parent | Placed a throttle on UserManagementModule for name lookups. Singularity appar... (diff) | |
download | opensim-SC_OLD-c3db5959441dbd1e04cdd32e92bda9eb5bf2853b.zip opensim-SC_OLD-c3db5959441dbd1e04cdd32e92bda9eb5bf2853b.tar.gz opensim-SC_OLD-c3db5959441dbd1e04cdd32e92bda9eb5bf2853b.tar.bz2 opensim-SC_OLD-c3db5959441dbd1e04cdd32e92bda9eb5bf2853b.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs index a0d5c42..a41eaf8 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |||
@@ -90,6 +90,8 @@ public abstract class BSPhysObject : PhysicsActor | |||
90 | PhysBody = new BulletBody(localID); | 90 | PhysBody = new BulletBody(localID); |
91 | PhysShape = new BSShapeNull(); | 91 | PhysShape = new BSShapeNull(); |
92 | 92 | ||
93 | UserSetCenterOfMassDisplacement = null; | ||
94 | |||
93 | PrimAssetState = PrimAssetCondition.Unknown; | 95 | PrimAssetState = PrimAssetCondition.Unknown; |
94 | 96 | ||
95 | // Default material type. Also sets Friction, Restitution and Density. | 97 | // Default material type. Also sets Friction, Restitution and Density. |
@@ -180,6 +182,7 @@ public abstract class BSPhysObject : PhysicsActor | |||
180 | Material = (MaterialAttributes.Material)material; | 182 | Material = (MaterialAttributes.Material)material; |
181 | 183 | ||
182 | // Setting the material sets the material attributes also. | 184 | // Setting the material sets the material attributes also. |
185 | // TODO: decide if this is necessary -- the simulator does this. | ||
183 | MaterialAttributes matAttrib = BSMaterials.GetAttributes(Material, false); | 186 | MaterialAttributes matAttrib = BSMaterials.GetAttributes(Material, false); |
184 | Friction = matAttrib.friction; | 187 | Friction = matAttrib.friction; |
185 | Restitution = matAttrib.restitution; | 188 | Restitution = matAttrib.restitution; |
@@ -194,10 +197,10 @@ public abstract class BSPhysObject : PhysicsActor | |||
194 | // Update the physical location and motion of the object. Called with data from Bullet. | 197 | // Update the physical location and motion of the object. Called with data from Bullet. |
195 | public abstract void UpdateProperties(EntityProperties entprop); | 198 | public abstract void UpdateProperties(EntityProperties entprop); |
196 | 199 | ||
197 | public abstract OMV.Vector3 RawPosition { get; set; } | 200 | public virtual OMV.Vector3 RawPosition { get; set; } |
198 | public abstract OMV.Vector3 ForcePosition { get; set; } | 201 | public abstract OMV.Vector3 ForcePosition { get; set; } |
199 | 202 | ||
200 | public abstract OMV.Quaternion RawOrientation { get; set; } | 203 | public virtual OMV.Quaternion RawOrientation { get; set; } |
201 | public abstract OMV.Quaternion ForceOrientation { get; set; } | 204 | public abstract OMV.Quaternion ForceOrientation { get; set; } |
202 | 205 | ||
203 | public OMV.Vector3 RawVelocity { get; set; } | 206 | public OMV.Vector3 RawVelocity { get; set; } |