mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Actually plumb the new values to physics.
This commit is contained in:
@@ -1689,6 +1689,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (ParentGroup != null)
|
||||
ParentGroup.HasGroupChanged = true;
|
||||
|
||||
PhysicsActor pa = PhysActor;
|
||||
if (pa != null)
|
||||
pa.Density = Density;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1708,6 +1712,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (ParentGroup != null)
|
||||
ParentGroup.HasGroupChanged = true;
|
||||
|
||||
PhysicsActor pa = PhysActor;
|
||||
if (pa != null)
|
||||
pa.GravModifier = GravityModifier;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1726,6 +1733,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (ParentGroup != null)
|
||||
ParentGroup.HasGroupChanged = true;
|
||||
|
||||
PhysicsActor pa = PhysActor;
|
||||
if (pa != null)
|
||||
pa.Friction = Friction;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1744,6 +1755,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (ParentGroup != null)
|
||||
ParentGroup.HasGroupChanged = true;
|
||||
|
||||
PhysicsActor pa = PhysActor;
|
||||
if (pa != null)
|
||||
pa.Restitution = Restitution;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4657,6 +4672,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
pa.SOPName = this.Name; // save object into the PhysActor so ODE internals know the joint/body info
|
||||
pa.SetMaterial(Material);
|
||||
|
||||
pa.Density = Density;
|
||||
pa.GravModifier = GravityModifier;
|
||||
pa.Friction = Friction;
|
||||
pa.Restitution = Restitution;
|
||||
|
||||
if (VolumeDetectActive) // change if not the default only
|
||||
pa.SetVolumeDetect(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user