private GetLocalPos ( ISceneChildEntity entity ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 | ||
entity | ISceneChildEntity | |
return | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 |
private LSL_Vector GetLocalPos(ISceneChildEntity entity)
{
Vector3 tmp;
if (entity.ParentID != 0)
{
tmp = entity.OffsetPosition;
return new LSL_Vector(tmp.X,
tmp.Y,
tmp.Z);
}
tmp = entity.AbsolutePosition;
return new LSL_Vector(tmp.X,
tmp.Y,
tmp.Z);
}