mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
precision issues
This commit is contained in:
@@ -4997,10 +4997,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
AssetLandmark lm = new AssetLandmark(a);
|
||||
if(lm != null)
|
||||
{
|
||||
float rx = (uint)(lm.RegionHandle >> 32);
|
||||
float ry = (uint)lm.RegionHandle;
|
||||
Vector3 region = new Vector3(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0);
|
||||
region = lm.Position + new Vector3(rx, ry, 0) - region;
|
||||
double rx = (lm.RegionHandle >> 32) - World.RegionInfo.WorldLocX + (double)lm.Position.X;
|
||||
double ry = lm.RegionHandle - World.RegionInfo.WorldLocY + (double)lm.Position.Y;
|
||||
LSL_Vector region = new LSL_Vector(rx, ry, lm.Position.Z);
|
||||
reply = region.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -512,7 +512,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot);
|
||||
void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot);
|
||||
void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass);
|
||||
void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot);
|
||||
void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, vector centerOfMass,rotation lslrot);
|
||||
|
||||
LSL_Integer osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags);
|
||||
LSL_Integer osGetLinkNumber(LSL_String name);
|
||||
|
||||
Reference in New Issue
Block a user