From 8edaada1d3a8766f0759ddd42bdbf96c864ef30c Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 18 Feb 2008 01:52:25 +0000 Subject: ODE: Tired of floating above the ground after crossing a border? Boy have I got a solution for you! For a limited time, you can be the right height after border crossings automatically. Just three easy payments of $9.95 and make sure your neighbor is sending child agent updates! --- OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 3 ++- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin') diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 0f1446c..c41f812 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -104,7 +104,7 @@ namespace OpenSim.Region.Physics.OdePlugin public d.Mass ShellMass; public bool collidelock = false; - public OdeCharacter(String avName, OdeScene parent_scene, PhysicsVector pos, CollisionLocker dode) + public OdeCharacter(String avName, OdeScene parent_scene, PhysicsVector pos, CollisionLocker dode, PhysicsVector size) { ode = dode; _velocity = new PhysicsVector(); @@ -131,6 +131,7 @@ namespace OpenSim.Region.Physics.OdePlugin { m_colliderarr[i] = false; } + CAPSULE_LENGTH = (size.Z - ((size.Z * 0.52f))); lock (OdeScene.OdeLock) { diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index c4d249d..3817868 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -702,13 +702,13 @@ namespace OpenSim.Region.Physics.OdePlugin } } - public override PhysicsActor AddAvatar(string avName, PhysicsVector position) + public override PhysicsActor AddAvatar(string avName, PhysicsVector position, PhysicsVector size) { PhysicsVector pos = new PhysicsVector(); pos.X = position.X; pos.Y = position.Y; pos.Z = position.Z; - OdeCharacter newAv = new OdeCharacter(avName, this, pos, ode); + OdeCharacter newAv = new OdeCharacter(avName, this, pos, ode, size); _characters.Add(newAv); return newAv; } -- cgit v1.1