| 609 | } |
| 610 | |
| 611 | bool RotateObject(int objnum, angle p, angle h, angle b) { |
| 612 | object *obj = &Objects[objnum]; |
| 613 | matrix rotmat; |
| 614 | |
| 615 | vm_AnglesToMatrix(&rotmat, p, h, b); |
| 616 | obj->orient *= rotmat; // ObjSetOrient is below |
| 617 | |
| 618 | vm_Orthogonalize(&obj->orient); |
| 619 | ObjSetOrient(obj, &obj->orient); |
| 620 | |
| 621 | Object_moved = 1; |
| 622 | |
| 623 | return 1; |
| 624 | } |
| 625 | |
| 626 | // Flipping of object |
| 627 | void HObjectFlip() { |
no test coverage detected