aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index a2d8cfd..44c9d58 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -1017,12 +1017,14 @@ namespace OpenSim.Region.Physics.OdePlugin
1017 { 1017 {
1018 PhysicsVector SetSize = value; 1018 PhysicsVector SetSize = value;
1019 float prevCapsule = CAPSULE_LENGTH; 1019 float prevCapsule = CAPSULE_LENGTH;
1020 float capsuleradius = CAPSULE_RADIUS;
1021 capsuleradius = 0.2f;
1020 1022
1021 CAPSULE_LENGTH = (SetSize.Z - (CAPSULE_RADIUS * 2))/ 1.75f; //; 1023 CAPSULE_LENGTH = (SetSize.Z - ((SetSize.Z * 0.43f))); // subtract 43% of the size
1022 d.BodyDestroy(Body); 1024 d.BodyDestroy(Body);
1023 d.GeomDestroy(Shell); 1025 d.GeomDestroy(Shell);
1024 //OpenSim.Framework.Console.MainLog.Instance.Verbose("PHYSICS", "Set Avatar Height To: " + (CAPSULE_RADIUS + CAPSULE_LENGTH)); 1026 //OpenSim.Framework.Console.MainLog.Instance.Verbose("PHYSICS", "Set Avatar Height To: " + (CAPSULE_RADIUS + CAPSULE_LENGTH));
1025 Shell = d.CreateCapsule(_parent_scene.space, CAPSULE_RADIUS, CAPSULE_LENGTH); 1027 Shell = d.CreateCapsule(_parent_scene.space, capsuleradius, CAPSULE_LENGTH);
1026 d.MassSetCapsule(out ShellMass, 50.0f, 3, CAPSULE_RADIUS, CAPSULE_LENGTH); 1028 d.MassSetCapsule(out ShellMass, 50.0f, 3, CAPSULE_RADIUS, CAPSULE_LENGTH);
1027 Body = d.BodyCreate(_parent_scene.world); 1029 Body = d.BodyCreate(_parent_scene.world);
1028 d.BodySetMass(Body, ref ShellMass); 1030 d.BodySetMass(Body, ref ShellMass);