aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorlbsa712007-08-15 18:13:32 +0000
committerlbsa712007-08-15 18:13:32 +0000
commit2a5a8c48c39f0a01174dfe1c20a21ede36df5166 (patch)
tree5d0b9d051449e1770a028f7ca5d01bf73045cb5a /OpenSim
parent* Added more spinning parts to ComplexObject. (diff)
downloadopensim-SC-2a5a8c48c39f0a01174dfe1c20a21ede36df5166.zip
opensim-SC-2a5a8c48c39f0a01174dfe1c20a21ede36df5166.tar.gz
opensim-SC-2a5a8c48c39f0a01174dfe1c20a21ede36df5166.tar.bz2
opensim-SC-2a5a8c48c39f0a01174dfe1c20a21ede36df5166.tar.xz
* We now have a field of spinning objects.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 59d73ba..f064eaa 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -70,9 +70,13 @@ namespace SimpleApp
70 SceneObjectGroup sceneObject = new CpuCounterObject(scene, regionInfo.RegionHandle, LLUUID.Zero, scene.PrimIDAllocate(), pos + new LLVector3( 1f, 1f, 1f )); 70 SceneObjectGroup sceneObject = new CpuCounterObject(scene, regionInfo.RegionHandle, LLUUID.Zero, scene.PrimIDAllocate(), pos + new LLVector3( 1f, 1f, 1f ));
71 scene.AddEntity(sceneObject); 71 scene.AddEntity(sceneObject);
72 72
73 ComplexObject complexObject = new ComplexObject(scene, regionInfo.RegionHandle, LLUUID.Zero, scene.PrimIDAllocate(), pos + new LLVector3( 2f, 2f, 2f )); 73 for (int i = 0; i < 27; i++)
74 scene.AddEntity(complexObject); 74 {
75 75 LLVector3 posOffset = new LLVector3( (i%3)*4, (i%9)/3 * 4, (i/9) * 4 );
76 ComplexObject complexObject = new ComplexObject(scene, regionInfo.RegionHandle, LLUUID.Zero, scene.PrimIDAllocate(), pos + posOffset );
77 scene.AddEntity(complexObject);
78 }
79
76 MyNpcCharacter m_character = new MyNpcCharacter(scene.EventManager); 80 MyNpcCharacter m_character = new MyNpcCharacter(scene.EventManager);
77 scene.AddNewClient(m_character, false); 81 scene.AddNewClient(m_character, false);
78 82