mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
* Again, FileSystemObject reports filename.
* SimpleApp now featuring spinning box with spinning parts. * Damn. That's cool.
This commit is contained in:
@@ -41,6 +41,8 @@ namespace SimpleApp
|
||||
|
||||
AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, 1f)));
|
||||
AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, -1f)));
|
||||
|
||||
UpdateParentIDs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,20 +7,21 @@ using OpenSim.Framework.Types;
|
||||
using System.Timers;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using Primitive=OpenSim.Region.Environment.Scenes.Primitive;
|
||||
using Primitive = OpenSim.Region.Environment.Scenes.Primitive;
|
||||
|
||||
namespace SimpleApp
|
||||
{
|
||||
public class FileSystemObject : SceneObjectGroup
|
||||
{
|
||||
public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos)
|
||||
: base( world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default )
|
||||
: base(world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default)
|
||||
{
|
||||
|
||||
|
||||
float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5;
|
||||
// rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
|
||||
// rootPrimitive.Text = fileInfo.Name;
|
||||
|
||||
|
||||
float size = (float)Math.Pow((double)fileInfo.Length, (double)1 / 3) / 5;
|
||||
// rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
|
||||
Text = fileInfo.Name;
|
||||
ScheduleGroupForFullUpdate();
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
|
||||
Reference in New Issue
Block a user