aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
diff options
context:
space:
mode:
authorRobert Adams2014-10-02 18:45:36 -0700
committerRobert Adams2014-11-30 19:52:58 -0800
commitcf85ade81e38e692fe99c71386ab2c306ab77319 (patch)
treeba8dd76e62a4a989ae46f02dfe028ef0ee3d37fd /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
parentA little more cleaning of config files. (diff)
downloadopensim-SC-cf85ade81e38e692fe99c71386ab2c306ab77319.zip
opensim-SC-cf85ade81e38e692fe99c71386ab2c306ab77319.tar.gz
opensim-SC-cf85ade81e38e692fe99c71386ab2c306ab77319.tar.bz2
opensim-SC-cf85ade81e38e692fe99c71386ab2c306ab77319.tar.xz
BulletSim: add shape and linkset rebuild scheduled flags. Add BSPrim.Incomplete flag based on rebuild flags to say when an object is being rebuilt.
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
index e4d8df8..2b744a0 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
@@ -136,6 +136,15 @@ public abstract class BSPhysObject : PhysicsActor
136 // This mostly prevents property updates and collisions until the object is completely here. 136 // This mostly prevents property updates and collisions until the object is completely here.
137 public bool IsInitialized { get; protected set; } 137 public bool IsInitialized { get; protected set; }
138 138
139 // Set to 'true' if an object (mesh/linkset/sculpty) is not completely constructed.
140 // This test is used to prevent some updates to the object when it only partially exists.
141 // There are several reasons and object might be incomplete:
142 // Its underlying mesh/sculpty is an asset which must be fetched from the asset store
143 // It is a linkset who is being added to or removed from
144 // It is changing state (static to physical, for instance) which requires rebuilding
145 // This is a computed value based on the underlying physical object construction
146 abstract public bool IsIncomplete { get; }
147
139 // Return the object mass without calculating it or having side effects 148 // Return the object mass without calculating it or having side effects
140 public abstract float RawMass { get; } 149 public abstract float RawMass { get; }
141 // Set the raw mass but also update physical mass properties (inertia, ...) 150 // Set the raw mass but also update physical mass properties (inertia, ...)