Let OOB information usable outside ubitode

This commit is contained in:
UbitUmarov
2012-05-27 14:01:42 +01:00
parent d2260423e5
commit f740c9522a
3 changed files with 33 additions and 29 deletions

View File

@@ -294,6 +294,34 @@ namespace OpenSim.Region.Physics.Manager
public abstract Vector3 GeometricCenter { get; }
public abstract Vector3 CenterOfMass { get; }
public virtual Vector3 OOBsize
{
get
{
Vector3 s=Size;
s.X *=0.5f;
s.Y *=0.5f;
s.Z *=0.5f;
return s;
}
}
public virtual Vector3 OOBoffset
{
get
{
return Vector3.Zero;
}
}
public virtual float OOBRadiusSQ
{
get
{
return Size.LengthSquared() * 0.25f; // ((0.5^2)
}
}
/// <summary>
/// Velocity of this actor.
/// </summary>
@@ -429,7 +457,6 @@ namespace OpenSim.Region.Physics.Manager
public override void VehicleFloatParam(int param, float value)
{
}
public override void VehicleVectorParam(int param, Vector3 value)