mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
experimental function. Results still too volatile to be usefull
This commit is contained in:
@@ -5408,5 +5408,24 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter
|
||||
Acceleration = Vector3.Zero;
|
||||
APIDActive = false;
|
||||
}
|
||||
|
||||
// handle osVolumeDetect
|
||||
public void ScriptSetVolumeDetect(bool makeVolumeDetect)
|
||||
{
|
||||
if(_parentID == 0)
|
||||
{
|
||||
// if root prim do it via SOG
|
||||
ParentGroup.ScriptSetVolumeDetect(makeVolumeDetect);
|
||||
return;
|
||||
}
|
||||
|
||||
bool wasUsingPhysics = ((Flags & PrimFlags.Physics) != 0);
|
||||
bool wasTemporary = ((Flags & PrimFlags.TemporaryOnRez) != 0);
|
||||
bool wasPhantom = ((Flags & PrimFlags.Phantom) != 0);
|
||||
|
||||
if(PhysActor != null)
|
||||
PhysActor.Building = true;
|
||||
UpdatePrimFlags(wasUsingPhysics,wasTemporary,wasPhantom,makeVolumeDetect,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user