diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs index f99bfc5..dd592dd 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs | |||
@@ -39,7 +39,7 @@ using System; | |||
39 | using System.Collections.Generic; | 39 | using System.Collections.Generic; |
40 | using System.Drawing; | 40 | using System.Drawing; |
41 | 41 | ||
42 | using libsecondlife; | 42 | using OpenMetaverse; |
43 | 43 | ||
44 | using Nini.Config; | 44 | using Nini.Config; |
45 | 45 | ||
@@ -50,8 +50,6 @@ using OpenSim.Region.Physics.Manager; | |||
50 | 50 | ||
51 | using log4net; | 51 | using log4net; |
52 | 52 | ||
53 | using Axiom.Math; | ||
54 | |||
55 | namespace OpenSim.Region.Environment.Modules.ContentManagement | 53 | namespace OpenSim.Region.Environment.Modules.ContentManagement |
56 | { | 54 | { |
57 | public class AuraMetaEntity : PointMetaEntity | 55 | public class AuraMetaEntity : PointMetaEntity |
@@ -59,13 +57,13 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
59 | #region Constructors | 57 | #region Constructors |
60 | 58 | ||
61 | //transparency of root part, NOT particle system. Should probably add support for changing particle system transparency. | 59 | //transparency of root part, NOT particle system. Should probably add support for changing particle system transparency. |
62 | public AuraMetaEntity(Scene scene, uint LocalId, LLVector3 groupPos, float transparency, LLVector3 color, LLVector3 scale) | 60 | public AuraMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency, Vector3 color, Vector3 scale) |
63 | : base(scene, LocalId, groupPos, transparency) | 61 | : base(scene, LocalId, groupPos, transparency) |
64 | { | 62 | { |
65 | SetAura(color, scale); | 63 | SetAura(color, scale); |
66 | } | 64 | } |
67 | 65 | ||
68 | public AuraMetaEntity(Scene scene, LLUUID uuid, uint LocalId, LLVector3 groupPos, float transparency, LLVector3 color, LLVector3 scale) | 66 | public AuraMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency, Vector3 color, Vector3 scale) |
69 | : base(scene, uuid, LocalId, groupPos, transparency) | 67 | : base(scene, uuid, LocalId, groupPos, transparency) |
70 | { | 68 | { |
71 | SetAura(color, scale); | 69 | SetAura(color, scale); |
@@ -75,7 +73,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
75 | 73 | ||
76 | #region Private Methods | 74 | #region Private Methods |
77 | 75 | ||
78 | private float Average(LLVector3 values) | 76 | private float Average(Vector3 values) |
79 | { | 77 | { |
80 | return (values.X + values.Y + values.Z)/3f; | 78 | return (values.X + values.Y + values.Z)/3f; |
81 | } | 79 | } |
@@ -84,12 +82,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
84 | 82 | ||
85 | #region Public Methods | 83 | #region Public Methods |
86 | 84 | ||
87 | public void SetAura(LLVector3 color, LLVector3 scale) | 85 | public void SetAura(Vector3 color, Vector3 scale) |
88 | { | 86 | { |
89 | SetAura(color, Average(scale) * 2.0f); | 87 | SetAura(color, Average(scale) * 2.0f); |
90 | } | 88 | } |
91 | 89 | ||
92 | public void SetAura(LLVector3 color, float radius) | 90 | public void SetAura(Vector3 color, float radius) |
93 | { | 91 | { |
94 | SceneObjectPart From = m_Entity.RootPart; | 92 | SceneObjectPart From = m_Entity.RootPart; |
95 | 93 | ||
@@ -110,7 +108,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
110 | SetAura(From, color, radius, burstRadius, age, burstRate, patternFlags); | 108 | SetAura(From, color, radius, burstRadius, age, burstRate, patternFlags); |
111 | } | 109 | } |
112 | 110 | ||
113 | public void SetAura(SceneObjectPart From, LLVector3 color, float radius, float burstRadius, float age, float burstRate, libsecondlife.Primitive.ParticleSystem.SourcePattern patternFlags) | 111 | public void SetAura(SceneObjectPart From, Vector3 color, float radius, float burstRadius, float age, float burstRate, Primitive.ParticleSystem.SourcePattern patternFlags) |
114 | { | 112 | { |
115 | Primitive.ParticleSystem prules = new Primitive.ParticleSystem(); | 113 | Primitive.ParticleSystem prules = new Primitive.ParticleSystem(); |
116 | //prules.PartDataFlags = Primitive.ParticleSystem.ParticleDataFlags.Emissive | | 114 | //prules.PartDataFlags = Primitive.ParticleSystem.ParticleDataFlags.Emissive | |
@@ -139,7 +137,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
139 | prules.PartAcceleration.Y = 0.0f; | 137 | prules.PartAcceleration.Y = 0.0f; |
140 | prules.PartAcceleration.Z = 0.0f; | 138 | prules.PartAcceleration.Z = 0.0f; |
141 | prules.Pattern = patternFlags; //PSYS_SRC_PATTERN | 139 | prules.Pattern = patternFlags; //PSYS_SRC_PATTERN |
142 | //prules.Texture = LLUUID.Zero;//= LLUUID //PSYS_SRC_TEXTURE, default used if blank | 140 | //prules.Texture = UUID.Zero;//= UUID //PSYS_SRC_TEXTURE, default used if blank |
143 | prules.BurstRate = burstRate; //PSYS_SRC_BURST_RATE | 141 | prules.BurstRate = burstRate; //PSYS_SRC_BURST_RATE |
144 | prules.BurstPartCount = 2; //PSYS_SRC_BURST_PART_COUNT | 142 | prules.BurstPartCount = 2; //PSYS_SRC_BURST_PART_COUNT |
145 | //prules.BurstRadius = radius; //PSYS_SRC_BURST_RADIUS | 143 | //prules.BurstRadius = radius; //PSYS_SRC_BURST_RADIUS |
@@ -160,4 +158,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
160 | 158 | ||
161 | #endregion Public Methods | 159 | #endregion Public Methods |
162 | } | 160 | } |
163 | } \ No newline at end of file | 161 | } |