diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSParam.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs index 06186b0..8de8905 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |||
@@ -82,9 +82,34 @@ public static class BSParam | |||
82 | public static float AvatarStepApproachFactor { get; private set; } | 82 | public static float AvatarStepApproachFactor { get; private set; } |
83 | public static float AvatarStepForceFactor { get; private set; } | 83 | public static float AvatarStepForceFactor { get; private set; } |
84 | 84 | ||
85 | // Vehicle parameters | ||
85 | public static float VehicleMaxLinearVelocity { get; private set; } | 86 | public static float VehicleMaxLinearVelocity { get; private set; } |
86 | public static float VehicleMaxAngularVelocity { get; private set; } | 87 | public static float VehicleMaxAngularVelocity { get; private set; } |
87 | public static float VehicleAngularDamping { get; private set; } | 88 | public static float VehicleAngularDamping { get; private set; } |
89 | public static float VehicleFriction { get; private set; } | ||
90 | public static float VehicleRestitution { get; private set; } | ||
91 | public static float VehicleLinearFactor { get; private set; } | ||
92 | private static Vector3? vehicleLinearFactorV; | ||
93 | public static Vector3 VehicleLinearFactorV | ||
94 | { | ||
95 | get | ||
96 | { | ||
97 | if (!vehicleLinearFactorV.HasValue) | ||
98 | vehicleLinearFactorV = new Vector3(VehicleLinearFactor, VehicleLinearFactor, VehicleLinearFactor); | ||
99 | return (Vector3)vehicleLinearFactorV; | ||
100 | } | ||
101 | } | ||
102 | public static float VehicleAngularFactor { get; private set; } | ||
103 | private static Vector3? vehicleAngularFactorV; | ||
104 | public static Vector3 VehicleAngularFactorV | ||
105 | { | ||
106 | get | ||
107 | { | ||
108 | if (!vehicleAngularFactorV.HasValue) | ||
109 | vehicleAngularFactorV = new Vector3(VehicleAngularFactor, VehicleAngularFactor, VehicleAngularFactor); | ||
110 | return (Vector3)vehicleAngularFactorV; | ||
111 | } | ||
112 | } | ||
88 | public static float VehicleDebuggingEnabled { get; private set; } | 113 | public static float VehicleDebuggingEnabled { get; private set; } |
89 | 114 | ||
90 | public static float LinksetImplementation { get; private set; } | 115 | public static float LinksetImplementation { get; private set; } |
@@ -454,6 +479,26 @@ public static class BSParam | |||
454 | (s,cf,p,v) => { VehicleAngularDamping = cf.GetFloat(p, v); }, | 479 | (s,cf,p,v) => { VehicleAngularDamping = cf.GetFloat(p, v); }, |
455 | (s) => { return VehicleAngularDamping; }, | 480 | (s) => { return VehicleAngularDamping; }, |
456 | (s,p,l,v) => { VehicleAngularDamping = v; } ), | 481 | (s,p,l,v) => { VehicleAngularDamping = v; } ), |
482 | new ParameterDefn("VehicleLinearFactor", "Fraction of physical linear changes applied to vehicle (0.0 - 1.0)", | ||
483 | 0.2f, | ||
484 | (s,cf,p,v) => { VehicleLinearFactor = cf.GetFloat(p, v); }, | ||
485 | (s) => { return VehicleLinearFactor; }, | ||
486 | (s,p,l,v) => { VehicleLinearFactor = v; } ), | ||
487 | new ParameterDefn("VehicleAngularFactor", "Fraction of physical angular changes applied to vehicle (0.0 - 1.0)", | ||
488 | 0.2f, | ||
489 | (s,cf,p,v) => { VehicleAngularFactor = cf.GetFloat(p, v); }, | ||
490 | (s) => { return VehicleAngularFactor; }, | ||
491 | (s,p,l,v) => { VehicleAngularFactor = v; } ), | ||
492 | new ParameterDefn("VehicleFriction", "Friction of vehicle on the ground (0.0 - 1.0)", | ||
493 | 0.0f, | ||
494 | (s,cf,p,v) => { VehicleFriction = cf.GetFloat(p, v); }, | ||
495 | (s) => { return VehicleFriction; }, | ||
496 | (s,p,l,v) => { VehicleFriction = v; } ), | ||
497 | new ParameterDefn("VehicleRestitution", "Bouncyness factor for vehicles (0.0 - 1.0)", | ||
498 | 0.0f, | ||
499 | (s,cf,p,v) => { VehicleRestitution = cf.GetFloat(p, v); }, | ||
500 | (s) => { return VehicleRestitution; }, | ||
501 | (s,p,l,v) => { VehicleRestitution = v; } ), | ||
457 | new ParameterDefn("VehicleDebuggingEnable", "Turn on/off vehicle debugging", | 502 | new ParameterDefn("VehicleDebuggingEnable", "Turn on/off vehicle debugging", |
458 | ConfigurationParameters.numericFalse, | 503 | ConfigurationParameters.numericFalse, |
459 | (s,cf,p,v) => { VehicleDebuggingEnabled = BSParam.NumericBool(cf.GetBoolean(p, BSParam.BoolNumeric(v))); }, | 504 | (s,cf,p,v) => { VehicleDebuggingEnabled = BSParam.NumericBool(cf.GetBoolean(p, BSParam.BoolNumeric(v))); }, |