mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
slightly better hardcoded size for avatar capsule
we'll be measuring avatar dimensions more correctly soon
This commit is contained in:
parent
3c05d685d7
commit
fd76eda383
1 changed files with 3 additions and 3 deletions
|
@ -616,11 +616,11 @@ void PhysicsEngine::setAvatarData(AvatarData *avatarData) {
|
|||
glmToBullet(_avatarData->getPosition())));
|
||||
|
||||
// XXX these values should be computed from the character model.
|
||||
btScalar characterHeight = 1.75;
|
||||
btScalar characterWidth = 1.75;
|
||||
btScalar characterRadius = 0.3;
|
||||
btScalar characterHeight = 1.75 - 2.0f * characterRadius;
|
||||
btScalar stepHeight = btScalar(0.35);
|
||||
|
||||
btConvexShape* capsule = new btCapsuleShape(characterWidth, characterHeight);
|
||||
btConvexShape* capsule = new btCapsuleShape(characterRadius, characterHeight);
|
||||
_avatarGhostObject->setCollisionShape(capsule);
|
||||
_avatarGhostObject->setCollisionFlags(btCollisionObject::CF_CHARACTER_OBJECT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue