aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODECharacter.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
index 666fa86..de09691 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
@@ -419,8 +419,23 @@ namespace OpenSim.Region.Physics.OdePlugin
419 // place that is safe to call this routine AvatarGeomAndBodyCreation. 419 // place that is safe to call this routine AvatarGeomAndBodyCreation.
420 private void AvatarGeomAndBodyCreation(float npositionX, float npositionY, float npositionZ, float tensor) 420 private void AvatarGeomAndBodyCreation(float npositionX, float npositionY, float npositionZ, float tensor)
421 { 421 {
422 //CAPSULE_LENGTH = -5;
423 //CAPSULE_RADIUS = -5;
422 int dAMotorEuler = 1; 424 int dAMotorEuler = 1;
423 _parent_scene.waitForSpaceUnlock(_parent_scene.space); 425 _parent_scene.waitForSpaceUnlock(_parent_scene.space);
426 if (CAPSULE_LENGTH <= 0)
427 {
428 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
429 CAPSULE_LENGTH = 0.01f;
430
431 }
432
433 if (CAPSULE_RADIUS <= 0)
434 {
435 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
436 CAPSULE_RADIUS = 0.01f;
437
438 }
424 Shell = d.CreateCapsule(_parent_scene.space, CAPSULE_RADIUS, CAPSULE_LENGTH); 439 Shell = d.CreateCapsule(_parent_scene.space, CAPSULE_RADIUS, CAPSULE_LENGTH);
425 440
426 d.GeomSetCategoryBits(Shell, (int)m_collisionCategories); 441 d.GeomSetCategoryBits(Shell, (int)m_collisionCategories);