Skip to content

Commit

Permalink
delete @ts - ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkaikk committed Dec 30, 2024
1 parent 55b2368 commit 8558c15
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cocos/physics-2d/box2d-jsb/joints/fixed-joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,17 @@ import { PHYSICS_2D_PTM_RATIO } from '../../framework/physics-types';
export class b2FixedJoint extends b2Joint implements IFixedJoint {
setFrequency (v: number): void {
if (this._b2joint) {
// @ts - ignore
(this._b2joint as b2.WeldJoint).SetFrequency(v);
}
}
setDampingRatio (v: number): void {
if (this._b2joint) {
// @ts - ignore
(this._b2joint as b2.WeldJoint).SetDampingRatio(v);
}
}

_createJointDef (): any {
const comp = this._jointComp as FixedJoint2D;
// @ts - ignore
const def = new b2.WeldJointDef();
def.localAnchorA = { x: comp.anchor.x / PHYSICS_2D_PTM_RATIO, y: comp.anchor.y / PHYSICS_2D_PTM_RATIO };
def.localAnchorB = { x: comp.connectedAnchor.x / PHYSICS_2D_PTM_RATIO, y: comp.connectedAnchor.y / PHYSICS_2D_PTM_RATIO };
Expand Down

0 comments on commit 8558c15

Please sign in to comment.