mirror of
https://github.com/opensim/opensim.git
synced 2026-06-29 10:35:40 +08:00
* Added cautionary README.txt
This commit is contained in:
9
OpenSim/Region/Examples/SimpleModule/README.txt
Normal file
9
OpenSim/Region/Examples/SimpleModule/README.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
!!!IMPORTANT NOTE!!!
|
||||
|
||||
This code snippet provided as an example of coding functional content with region modules.
|
||||
|
||||
As of 13/3 2008 this module actually renders all regions within the instance unusable if enabled by dragging the dll from ./bin to global /bin.
|
||||
|
||||
So, use at own peril and in dedicated instance.
|
||||
|
||||
Peace.
|
||||
@@ -78,7 +78,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
|
||||
for (int i = 0; i < (objs*objs*objs); i++)
|
||||
{
|
||||
LLVector3 posOffset = new LLVector3((i % objs) * 4, (i % (objs*objs)) / ( objs ) * 4, (i / (objs*objs)) * 4);
|
||||
LLVector3 posOffset = new LLVector3((i % objs) * 4, ((i % (objs*objs)) / ( objs )) * 4, (i / (objs*objs)) * 4);
|
||||
ComplexObject complexObject =
|
||||
new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(),
|
||||
pos + posOffset);
|
||||
|
||||
Reference in New Issue
Block a user