| 89 | } |
| 90 | |
| 91 | void zEntButton_Move(_zEntButton* ent, xScene* sc, F32 dt, xEntFrame* frame) |
| 92 | { |
| 93 | if (ent->driver != NULL) |
| 94 | { |
| 95 | xEntFrame* ent_frame = ent->driver->frame; |
| 96 | if (ent->driveMode == 0) |
| 97 | { |
| 98 | xVec3 diff; |
| 99 | xVec3Sub(&diff, &ent_frame->mat.pos, &ent_frame->oldmat.pos); |
| 100 | xVec3Add(&ent->motion.mech.apos, &ent->motion.mech.apos, &diff); |
| 101 | xVec3Add(&ent->motion.mech.bpos, &ent->motion.mech.bpos, &diff); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | xEntMotionMove(&ent->motion, sc, dt, frame); |
| 106 | } |
| 107 | |
| 108 | void zEntButton_Setup(_zEntButton* ent, xScene*) |
| 109 | { |
nothing calls this directly
no test coverage detected