mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Again, great thanks to Alondria for:
Adding:: llSetParcelMusicUrl(), llGetRootPosition(), llGetRootRotation(), llGetGeometricCenter(), llSetLocalRot(), llListReplaceList(), llGetObjectPrimCount(),llGetParcelDetails(), llGetParcelMaxPrims(), llWater(), llGetLocalRot(), and llGetAccel()
This commit is contained in:
@@ -543,7 +543,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
bool isPhantom = ((ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) != 0);
|
||||
|
||||
bool usePhysics = isPhysical && !isPhantom;
|
||||
|
||||
|
||||
if (usePhysics)
|
||||
{
|
||||
PhysActor = m_parentGroup.m_scene.PhysicsScene.AddPrimShape(
|
||||
@@ -1239,6 +1239,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public LLVector3 GetGeometricCenter()
|
||||
{
|
||||
if (PhysActor != null)
|
||||
{
|
||||
return new LLVector3(PhysActor.CenterOfMass.X,PhysActor.CenterOfMass.Y,PhysActor.CenterOfMass.Z);
|
||||
}
|
||||
else
|
||||
{
|
||||
return new LLVector3(0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Texture
|
||||
|
||||
Reference in New Issue
Block a user