diff options
author | Teravus Ovares | 2007-11-17 05:16:36 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-17 05:16:36 +0000 |
commit | df507605cd7fbb60cb0f0cf5188b8fcbcfca94bc (patch) | |
tree | 8691495771dc08e62ae99b099f0c20531bc83f2f /OpenSim/Region/Physics | |
parent | * ODEPlugin - fixed issue where resizing prim causes the prim's collision box... (diff) | |
download | opensim-SC-df507605cd7fbb60cb0f0cf5188b8fcbcfca94bc.zip opensim-SC-df507605cd7fbb60cb0f0cf5188b8fcbcfca94bc.tar.gz opensim-SC-df507605cd7fbb60cb0f0cf5188b8fcbcfca94bc.tar.bz2 opensim-SC-df507605cd7fbb60cb0f0cf5188b8fcbcfca94bc.tar.xz |
* ODEPlugin Thinned the avatar out to average SL thin-ness. There's more work to be done on this, however, avatar will have a lot less difficulty getting into tight spaces/prim cuts
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 6 |
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); |