From cb2a45f1d7baca666e6a341bc79ecda98a1893d1 Mon Sep 17 00:00:00 2001 From: Anselme Date: Wed, 6 Sep 2017 00:08:44 +0200 Subject: [PATCH] maybe better collider for the shield's guard ? --- src/test/potator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/potator.cpp b/src/test/potator.cpp index 3fa8c6b..8d66278 100644 --- a/src/test/potator.cpp +++ b/src/test/potator.cpp @@ -35,8 +35,8 @@ Potator::Potator(PlayerCharacterNode * player, woodTransform.setRotation(btQuaternion(0, 3.1416f, 0)); shieldShape->addChildShape(woodTransform, new btCylinderShapeZ(btVector3(0.57f + PHYSICS_SHAPES_OFFSET, 0.57f + PHYSICS_SHAPES_OFFSET, 0.03f + PHYSICS_SHAPES_OFFSET))); btTransform guardTransform = btTransform::getIdentity(); - guardTransform.setOrigin(btVector3(0.f, 0.f, -0.08f)); - shieldShape->addChildShape(guardTransform, new btConeShapeZ(0.17 + PHYSICS_SHAPES_OFFSET, -0.17 + PHYSICS_SHAPES_OFFSET)); + guardTransform.setOrigin(btVector3(0.f, 0.f, -0.035f)); + shieldShape->addChildShape(guardTransform, new btSphereShape(0.08 + PHYSICS_SHAPES_OFFSET)); m_shieldShape = shieldShape;