hack accelerate

This commit is contained in:
gmueller 2011-01-19 23:24:58 +01:00
parent 12153ffbea
commit eea995a926

View File

@ -7,6 +7,8 @@
#include "Network.h" #include "Network.h"
#include "btBulletDynamicsCommon.h"
#include <iostream> #include <iostream>
#include <cmath> #include <cmath>
@ -172,6 +174,7 @@ void Network::dispatch(enet_uint8 *data, size_t length) {
player->vx += um->x; player->vx += um->x;
player->vy += um->y; player->vy += um->y;
player->vz += um->z; player->vz += um->z;
player->body->applyCentralImpulse(btVector3(um->x, um->y, um->z));
break; break;
} }
case MESSAGE_BOMB_DROP: { case MESSAGE_BOMB_DROP: {