| 776 | * Input parameters for ShapeCast |
| 777 | */ |
| 778 | export class ShapeCastInput { |
| 779 | readonly proxyA = new DistanceProxy(); |
| 780 | readonly proxyB = new DistanceProxy(); |
| 781 | readonly transformA = Transform.identity(); |
| 782 | readonly transformB = Transform.identity(); |
| 783 | readonly translationB = Vec2.zero(); |
| 784 | recycle() { |
| 785 | this.proxyA.recycle(); |
| 786 | this.proxyB.recycle(); |
| 787 | this.transformA.setIdentity(); |
| 788 | this.transformB.setIdentity(); |
| 789 | matrix.zeroVec2(this.translationB); |
| 790 | } |
| 791 | } |
| 792 | |
| 793 | /** |
| 794 | * Output results for b2ShapeCast |