MCPcopy
hub / github.com/piqnt/planck.js / ShapeCastInput

Class ShapeCastInput

src/collision/Distance.ts:778–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776 * Input parameters for ShapeCast
777 */
778export 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

Callers

nothing calls this directly

Calls 2

identityMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected