let SOG know about vehicles. Still needs serialization and applyphyscis on deserialize, etc

This commit is contained in:
UbitUmarov
2012-02-18 14:08:42 +00:00
parent 7d77ccc659
commit 5351ff925c
3 changed files with 541 additions and 30 deletions

View File

@@ -3170,34 +3170,37 @@ namespace OpenSim.Region.Framework.Scenes
public void SetVehicleType(int type)
{
if (PhysActor != null)
{
PhysActor.VehicleType = type;
}
if (ParentGroup.IsDeleted)
return;
ParentGroup.VehicleType = type;
}
public void SetVehicleFlags(int param, bool remove)
{
if (ParentGroup.IsDeleted)
return;
ParentGroup.SetVehicleFlags(param, remove);
}
public void SetVehicleFloatParam(int param, float value)
{
if (PhysActor != null)
{
PhysActor.VehicleFloatParam(param, value);
}
if (ParentGroup.IsDeleted)
return;
ParentGroup.SetVehicleFloatParam(param, value);
}
public void SetVehicleVectorParam(int param, Vector3 value)
{
if (PhysActor != null)
{
PhysActor.VehicleVectorParam(param, value);
}
if (ParentGroup.IsDeleted)
return;
ParentGroup.SetVehicleVectorParam(param, value);
}
public void SetVehicleRotationParam(int param, Quaternion rotation)
{
if (PhysActor != null)
{
PhysActor.VehicleRotationParam(param, rotation);
}
if (ParentGroup.IsDeleted)
return;
ParentGroup.SetVehicleRotationParam(param, rotation);
}
/// <summary>
@@ -3381,13 +3384,6 @@ namespace OpenSim.Region.Framework.Scenes
hasProfileCut = hasDimple; // is it the same thing?
}
public void SetVehicleFlags(int param, bool remove)
{
if (PhysActor != null)
{
PhysActor.VehicleFlags(param, remove);
}
}
public void SetGroup(UUID groupID, IClientAPI client)
{