diff options
author | Teravus Ovares | 2007-11-23 05:56:35 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-23 05:56:35 +0000 |
commit | 1ecd803e87119c0344b91798792130155a82859c (patch) | |
tree | 74cbd2102051d03acfa78f5763438fd0b0a19778 /OpenSim/Region/Environment/Scenes/EntityBase.cs | |
parent | Fixed Terrain rescale command (diff) | |
download | opensim-SC-1ecd803e87119c0344b91798792130155a82859c.zip opensim-SC-1ecd803e87119c0344b91798792130155a82859c.tar.gz opensim-SC-1ecd803e87119c0344b91798792130155a82859c.tar.bz2 opensim-SC-1ecd803e87119c0344b91798792130155a82859c.tar.xz |
* added some functions for use in raytracing. They're kind of crappy now, so they only display 'guesses' on the console when you rez a prim.
* any math gurus who'd like to improve rezzing need only to make the raytracer in SceneObjectPart work :D
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EntityBase.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EntityBase.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index 1c21159..94e2337 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs | |||
@@ -145,6 +145,31 @@ namespace OpenSim.Region.Environment.Scenes | |||
145 | return (EntityBase) MemberwiseClone(); | 145 | return (EntityBase) MemberwiseClone(); |
146 | } | 146 | } |
147 | 147 | ||
148 | |||
149 | |||
148 | public abstract void SetText(string text, Vector3 color, double alpha); | 150 | public abstract void SetText(string text, Vector3 color, double alpha); |
149 | } | 151 | } |
152 | |||
153 | //Nested Classes | ||
154 | public class EntityIntersection | ||
155 | { | ||
156 | public Vector3 ipoint = new Vector3(0, 0, 0); | ||
157 | public float normal = 0; | ||
158 | public bool HitTF = false; | ||
159 | public SceneObjectPart obj; | ||
160 | public float distance = 0; | ||
161 | |||
162 | public EntityIntersection() | ||
163 | { | ||
164 | |||
165 | |||
166 | } | ||
167 | public EntityIntersection(Vector3 _ipoint, float _normal, bool _HitTF) | ||
168 | { | ||
169 | ipoint = _ipoint; | ||
170 | normal = _normal; | ||
171 | HitTF = _HitTF; | ||
172 | } | ||
173 | |||
174 | } | ||
150 | } \ No newline at end of file | 175 | } \ No newline at end of file |