maybe better collider for the shield's guard ?
This commit is contained in:
parent
b0bd49fa84
commit
cb2a45f1d7
@ -35,8 +35,8 @@ Potator::Potator(PlayerCharacterNode * player,
|
|||||||
woodTransform.setRotation(btQuaternion(0, 3.1416f, 0));
|
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)));
|
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();
|
btTransform guardTransform = btTransform::getIdentity();
|
||||||
guardTransform.setOrigin(btVector3(0.f, 0.f, -0.08f));
|
guardTransform.setOrigin(btVector3(0.f, 0.f, -0.035f));
|
||||||
shieldShape->addChildShape(guardTransform, new btConeShapeZ(0.17 + PHYSICS_SHAPES_OFFSET, -0.17 + PHYSICS_SHAPES_OFFSET));
|
shieldShape->addChildShape(guardTransform, new btSphereShape(0.08 + PHYSICS_SHAPES_OFFSET));
|
||||||
|
|
||||||
m_shieldShape = shieldShape;
|
m_shieldShape = shieldShape;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user