diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 9 |
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, ...) |