mirror of
https://github.com/opensim/opensim.git
synced 2026-06-30 11:07:02 +08:00
Make vehicles retain velocity when crossing between regions.
This commit is contained in:
@@ -1539,6 +1539,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// or flexible
|
||||
if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible))
|
||||
{
|
||||
Vector3 velocity = Velocity;
|
||||
try
|
||||
{
|
||||
PhysActor = ParentGroup.Scene.PhysicsScene.AddPrimShape(
|
||||
@@ -1570,6 +1571,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
DoPhysicsPropertyUpdate(RigidBody, true);
|
||||
PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0);
|
||||
|
||||
Velocity = velocity;
|
||||
PhysActor.Velocity = velocity;
|
||||
|
||||
if (!building)
|
||||
PhysActor.Building = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user