diff options
author | Robert Adams | 2013-01-21 15:58:22 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-21 15:58:22 -0800 |
commit | 471c4778639aec60078e6cee7c964682c959f033 (patch) | |
tree | 2e43aab8780c4b2556fd730529d5bd897fec151b /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |
parent | Have SOP and LSL_Api call the proper GetCenterOfMass and GetGeometricCenter (diff) | |
download | opensim-SC-471c4778639aec60078e6cee7c964682c959f033.zip opensim-SC-471c4778639aec60078e6cee7c964682c959f033.tar.gz opensim-SC-471c4778639aec60078e6cee7c964682c959f033.tar.bz2 opensim-SC-471c4778639aec60078e6cee7c964682c959f033.tar.xz |
BulletSim: allow changing position and rotation of a child of a linkset
without rebuilding the whole compound shape. Should make vehicles move
smoother.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs index 5353c75..027c786 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |||
@@ -55,6 +55,16 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
55 | * BS.ApplyCentralForce BS.ApplyTorque | 55 | * BS.ApplyCentralForce BS.ApplyTorque |
56 | */ | 56 | */ |
57 | 57 | ||
58 | // Flags used to denote which properties updates when making UpdateProperties calls to linksets, etc. | ||
59 | public enum UpdatedProperties : uint | ||
60 | { | ||
61 | Position = 1 << 0, | ||
62 | Orientation = 1 << 1, | ||
63 | Velocity = 1 << 2, | ||
64 | Acceleration = 1 << 3, | ||
65 | RotationalVelocity = 1 << 4, | ||
66 | EntPropUpdates = Position | Orientation | Velocity | Acceleration | RotationalVelocity, | ||
67 | } | ||
58 | public abstract class BSPhysObject : PhysicsActor | 68 | public abstract class BSPhysObject : PhysicsActor |
59 | { | 69 | { |
60 | protected BSPhysObject() | 70 | protected BSPhysObject() |