| 700 | } |
| 701 | |
| 702 | void CPHJoint::SetVelocity(const float velocity, const int axis_num) |
| 703 | { |
| 704 | int ax; |
| 705 | ax = axis_num; |
| 706 | LimitAxisNum(ax); |
| 707 | |
| 708 | if (ax == -1) |
| 709 | switch (eType) |
| 710 | { |
| 711 | case ball: return; |
| 712 | case hinge: axes[0].velocity = velocity; break; |
| 713 | case hinge2:; |
| 714 | case slider:; |
| 715 | axes[0].velocity = velocity; |
| 716 | axes[1].velocity = velocity; |
| 717 | break; |
| 718 | case full_control: |
| 719 | axes[0].velocity = velocity; |
| 720 | axes[1].velocity = velocity; |
| 721 | axes[2].velocity = velocity; |
| 722 | break; |
| 723 | } |
| 724 | |
| 725 | else |
| 726 | { |
| 727 | axes[ax].velocity = velocity; |
| 728 | } |
| 729 | |
| 730 | if (bActive) |
| 731 | { |
| 732 | SetVelocityActive(ax); |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | void CPHJoint::SetVelocityActive(const int axis_num) |
| 737 | { |
no outgoing calls
no test coverage detected