- if (objects.type[k] == treetrunktype) {
- objects.rotx[k] += joints[i].velocity.x * multiplier * .4;
- objects.roty[k] += joints[i].velocity.z * multiplier * .4;
- objects.rotx[k + 1] += joints[i].velocity.x * multiplier * .4;
- objects.roty[k + 1] += joints[i].velocity.z * multiplier * .4;
+ if (Object::objects[k]->type == treetrunktype) {
+ Object::objects[k]->rotx += joints[i].velocity.x * multiplier * .4;
+ Object::objects[k]->roty += joints[i].velocity.z * multiplier * .4;
+ Object::objects[k + 1]->rotx += joints[i].velocity.x * multiplier * .4;
+ Object::objects[k + 1]->roty += joints[i].velocity.z * multiplier * .4;