diff options
author | dan miller | 2007-09-09 15:28:15 +0000 |
---|---|---|
committer | dan miller | 2007-09-09 15:28:15 +0000 |
commit | 94b03aa09d2937f95511f07c9ae41e1d94150f8f (patch) | |
tree | 228786591bd33609a15748e6d437fb32bb928afe /OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |
parent | ODE fix: avatar/avatar collision enabled. Needs client update fix to be seen... (diff) | |
download | opensim-SC-94b03aa09d2937f95511f07c9ae41e1d94150f8f.zip opensim-SC-94b03aa09d2937f95511f07c9ae41e1d94150f8f.tar.gz opensim-SC-94b03aa09d2937f95511f07c9ae41e1d94150f8f.tar.bz2 opensim-SC-94b03aa09d2937f95511f07c9ae41e1d94150f8f.tar.xz |
ODE: added support for Phantom flag. Presently you need to add 1024 to ObjectFlags by hand
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 879cd79..e5ab41f 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -415,10 +415,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
415 | this.AddEntity(group); | 415 | this.AddEntity(group); |
416 | group.AbsolutePosition = pos; | 416 | group.AbsolutePosition = pos; |
417 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); | 417 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); |
418 | rootPart.PhysActor = phyScene.AddPrim( | 418 | if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) |
419 | new PhysicsVector(rootPart.AbsolutePosition.X, rootPart.AbsolutePosition.Y, rootPart.AbsolutePosition.Z), | 419 | rootPart.PhysActor = phyScene.AddPrim( |
420 | new PhysicsVector(rootPart.Scale.X, rootPart.Scale.Y, rootPart.Scale.Z), | 420 | new PhysicsVector(rootPart.AbsolutePosition.X, rootPart.AbsolutePosition.Y, rootPart.AbsolutePosition.Z), |
421 | new Axiom.Math.Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, | 421 | new PhysicsVector(rootPart.Scale.X, rootPart.Scale.Y, rootPart.Scale.Z), |
422 | new Axiom.Math.Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, | ||
422 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z)); | 423 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z)); |
423 | } | 424 | } |
424 | } | 425 | } |