BulletSim: update SOs and DLLs to run on more Linux versions. Correct multiple buoyancy settings when character flying. Remove chatty log message on prim destruction.
parent
374ebab574
commit
4adb3471ac
|
@ -274,9 +274,12 @@ public class BSCharacter : PhysicsActor
|
||||||
public override bool Flying {
|
public override bool Flying {
|
||||||
get { return _flying; }
|
get { return _flying; }
|
||||||
set {
|
set {
|
||||||
_flying = value;
|
if (_flying != value)
|
||||||
// simulate flying by changing the effect of gravity
|
{
|
||||||
this.Buoyancy = ComputeBuoyancyFromFlying(_flying);
|
_flying = value;
|
||||||
|
// simulate flying by changing the effect of gravity
|
||||||
|
this.Buoyancy = ComputeBuoyancyFromFlying(_flying);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private float ComputeBuoyancyFromFlying(bool ifFlying) {
|
private float ComputeBuoyancyFromFlying(bool ifFlying) {
|
||||||
|
|
|
@ -352,7 +352,7 @@ public class BSScene : PhysicsScene, IPhysicsParameters
|
||||||
BSPrim bsprim = prim as BSPrim;
|
BSPrim bsprim = prim as BSPrim;
|
||||||
if (bsprim != null)
|
if (bsprim != null)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("{0}: RemovePrim. id={1}/{2}", LogHeader, bsprim.Name, bsprim.LocalID);
|
// m_log.DebugFormat("{0}: RemovePrim. id={1}/{2}", LogHeader, bsprim.Name, bsprim.LocalID);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (m_prims) m_prims.Remove(bsprim.LocalID);
|
lock (m_prims) m_prims.Remove(bsprim.LocalID);
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue